demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Logging is always enabled #1741

Closed demianturner closed 11 years ago

demianturner commented 11 years ago

In SGL_Task_SetupCustomErrorHandler logging in enabled based on {{{ $conf['log']['enabled'] }}}

{{{ if (!empty($conf['log']['enabled'])) { ini_set('log_errors', true); } }}}

By checking for empty, if {{{ $conf['log']['enabled'] }}} = 1 or 0 logging is enabled.

{{{ if (!empty($conf['log']['enabled']) && $conf['log']['enabled']) { ini_set('log_errors', true); } }}}

Only enables logging when {{{ $conf['log']['enabled'] }}} = 1 or true