From d38c50ff6fbf96105f16b01169cb2c46e110ca28 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 17 Aug 2008 22:22:51 +0000 Subject: [PATCH] MDL-16066 fixed apache log typo - thanks Neil Streeter --- lib/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup.php b/lib/setup.php index 62406462973..694a9f961e2 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -714,7 +714,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 = '';