Further fix for MDL-7229 ... should work now.

This commit is contained in:
moodler
2006-11-06 17:55:32 +00:00
parent 0d83d91c88
commit 34bf3d4326
+1 -1
View 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();