From 34bf3d43264a35928589e3bea91cce99e7c9da29 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 6 Nov 2006 17:55:32 +0000 Subject: [PATCH] Further fix for MDL-7229 ... should work now. --- lib/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5