]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16066 fixed apache log typo - thanks Neil Streeter
authorskodak <skodak>
Sun, 17 Aug 2008 22:23:19 +0000 (22:23 +0000)
committerskodak <skodak>
Sun, 17 Aug 2008 22:23:19 +0000 (22:23 +0000)
lib/setup.php

index 97dc128ad4f4cab1a6ff8c802e8a45b227aa6c3b..3d2c82902a547536670ec1a72b4e48e4ce37b702 100644 (file)
@@ -493,7 +493,7 @@ global $HTTPSPAGEREQUIRED;
 /// Apache log intergration. In apache conf file one can use ${MOODULEUSER}n in
 /// LogFormat to get the current logged in username in moodle.
     if ($USER && function_exists('apache_note')
-        && !empty($CFG->apacheloguser) && isset($user->username)) {
+        && !empty($CFG->apacheloguser) && isset($USER->username)) {
         $apachelog_userid = $USER->id;
         $apachelog_username = clean_filename($USER->username);
         $apachelog_name = '';