Skip to content

Commit

Permalink
Merge branch 'MDL-29592' of git://github.com/danpoltawski/moodle into…
Browse files Browse the repository at this point in the history
… MOODLE_22_STABLE
  • Loading branch information
stronk7 committed Feb 27, 2012
2 parents 0d40a79 + 170c23d commit bcf5427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Expand Up @@ -2699,7 +2699,7 @@ function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
global $CFG, $USER, $UNITTEST;

$forcedebug = false;
if (!empty($CFG->debugusers)) {
if (!empty($CFG->debugusers) && $USER) {
$debugusers = explode(',', $CFG->debugusers);
$forcedebug = in_array($USER->id, $debugusers);
}
Expand Down

0 comments on commit bcf5427

Please sign in to comment.