From: moodler Date: Mon, 6 Nov 2006 17:55:32 +0000 (+0000) Subject: Further fix for MDL-7229 ... should work now. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=34bf3d43264a35928589e3bea91cce99e7c9da29;p=moodle.git Further fix for MDL-7229 ... should work now. --- diff --git a/lib/setup.php b/lib/setup.php index c5347e9209..4ae544fba4 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -560,7 +560,7 @@ $CFG->os = PHP_OS; moodle_setlocale(); if (!empty($CFG->opentogoogle)) { - if (empty($_SESSION['USER'])) { // Ignore anyone logged in + if (empty($USER->id)) { // Ignore anyone logged in if (!empty($_SERVER['HTTP_USER_AGENT'])) { if (strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false ) { $USER = guest_user();