]> git.mjollnir.org Git - moodle.git/commitdiff
Tweaks
authormoodler <moodler>
Wed, 1 Jan 2003 06:40:31 +0000 (06:40 +0000)
committermoodler <moodler>
Wed, 1 Jan 2003 06:40:31 +0000 (06:40 +0000)
lib/moodlelib.php
lib/setup.php

index d6127b84431a8800a60b804ccacbeb7289a36cf6..3ca169be92c0989118ed89c1e129b868c16955da 100644 (file)
@@ -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
index d4c5288f4bde6fc1101447d938fb2f9649504dee..42344fc652e205f84d6d477cde30e6e2162de171 100644 (file)
@@ -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