Permalink
Browse files

Slight change when checking for user.

  • Loading branch information...
1 parent 66092a3 commit 79a69a3a4bb65281d60743f87928a83a5982dc12 martin committed Jun 21, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.php
View
@@ -10,7 +10,7 @@
redirect("$CFG->wwwroot/admin/");
}
- if ($USER) {
+ if (isset($USER->id)) {
$headerbutton = update_course_icon($site->id);
} else {
$headerbutton = "<FONT SIZE=2><A HREF=\"login/\">Log in</A></FONT>";
@@ -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";

0 comments on commit 79a69a3

Please sign in to comment.