Skip to content

Commit

Permalink
debug off level is now 5 instead of 7 to prevent E_WARNING on product…
Browse files Browse the repository at this point in the history
…ion sites SC#294
  • Loading branch information
skodak committed Aug 22, 2006
1 parent cd1e684 commit cd79115
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/configvars.php
Expand Up @@ -69,7 +69,7 @@ function display_warning() {


/// debug /// debug
unset($options); unset($options);
$options[7] = $strno; $options[5] = $strno;
$options[15] = $stryes; $options[15] = $stryes;


$misc['debug'] = new configvar (get_string('configdebug', 'admin'), $misc['debug'] = new configvar (get_string('configdebug', 'admin'),
Expand Down
2 changes: 1 addition & 1 deletion lib/defaults.php
Expand Up @@ -23,7 +23,7 @@
'country' => '', 'country' => '',
'clamfailureonupload' => 'donothing', 'clamfailureonupload' => 'donothing',
'dbsessions' => false, 'dbsessions' => false,
'debug' => 7, 'debug' => 5,
'defaultrequestedcategory' => 1, 'defaultrequestedcategory' => 1,
'deleteunconfirmed' => 168, 'deleteunconfirmed' => 168,
'denyemailaddresses' => '', 'denyemailaddresses' => '',
Expand Down
2 changes: 1 addition & 1 deletion lib/setup.php
Expand Up @@ -215,7 +215,7 @@


/// Set error reporting back to normal /// Set error reporting back to normal
if (!isset($CFG->debug)) { // empty() would override 0 or false from config.php if (!isset($CFG->debug)) { // empty() would override 0 or false from config.php
$CFG->debug = 7; $CFG->debug = 5;
} }
error_reporting($CFG->debug); error_reporting($CFG->debug);


Expand Down

0 comments on commit cd79115

Please sign in to comment.