]> git.mjollnir.org Git - moodle.git/commitdiff
Further fix for MDL-7229 ... should work now.
authormoodler <moodler>
Mon, 6 Nov 2006 17:55:32 +0000 (17:55 +0000)
committermoodler <moodler>
Mon, 6 Nov 2006 17:55:32 +0000 (17:55 +0000)
lib/setup.php

index c5347e92095597e473998549908df001cf58030d..4ae544fba491b284873d4ffd978f2c9cadeeb448 100644 (file)
@@ -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();