From 79a69a3a4bb65281d60743f87928a83a5982dc12 Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 21 Jun 2002 15:55:37 +0000 Subject: [PATCH] Slight change when checking for user. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ce9651af1c..d1518fa54b 100644 --- a/index.php +++ b/index.php @@ -10,7 +10,7 @@ redirect("$CFG->wwwroot/admin/"); } - if ($USER) { + if (isset($USER->id)) { $headerbutton = update_course_icon($site->id); } else { $headerbutton = "Log in"; @@ -70,7 +70,7 @@ error("Could not find or create a main forum for the site"); } - if ($USER) { + if (isset($USER->id)) { $SESSION->fromdiscuss = "$CFG->wwwroot"; if (is_subscribed($USER->id, $newsforum->id)) { $subtext = "Unsubscribe from news"; -- 2.39.5