Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.1, 2.2
-
Component/s: Administration
-
Database:MySQL
-
Testing Instructions:
-
Workaround:
-
Difficulty:Easy
-
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
-
Fixed Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
-
Pull from Repository:
Description
When using $CFG->debugusers in config.php icons are not shown, because an error occurs while loading an icon. When trying to load an icon like theme/image.php?theme=standard&image=i%2Fnavigationitem an error like Notice: Trying to get property of non-object in /www/data/LearnWebTest/htdocs/LearnWebTest/live_image/lib/weblib.php on line 2842 occurs.
In libweblib.php:2840 insert and $USER != null |
function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
|
global $CFG, $USER, $UNITTEST;
|
|
$forcedebug = false;
|
if (!empty($CFG->debugusers) and $USER != null) {
|
$debugusers = explode(',', $CFG->debugusers);
|
$forcedebug = in_array($USER->id, $debugusers);
|
}
|