Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweaks

  • Loading branch information...
commit 346b1a2483aaefb1061e73a8937e8bf2f7d1a302 1 parent f747744
moodler authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/moodlelib.php
  2. +1 −1  lib/setup.php
View
2  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
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.