From 346b1a2483aaefb1061e73a8937e8bf2f7d1a302 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 1 Jan 2003 06:40:31 +0000 Subject: [PATCH] Tweaks --- lib/moodlelib.php | 2 +- lib/setup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index d6127b8443..3ca169be92 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -404,7 +404,7 @@ function isstudent($courseid, $userid=0) { global $USER; if (!$userid) { - return $USER->student[$courseid]; + return !empty($USER->student[$courseid]); } // $timenow = time(); // todo: add time check below diff --git a/lib/setup.php b/lib/setup.php index d4c5288f4b..42344fc652 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -11,7 +11,7 @@ ////////////////////////////////////////////////////////////// /// If there are any errors in the standard libraries we want to know! - error_reporting(E_ALL); // use 0=none 7=normal 15=all + error_reporting(E_ALL); /// Connect to the database using adodb -- 2.39.5