mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Tweaks
This commit is contained in:
parent
f747744495
commit
346b1a2483
2 changed files with 2 additions and 2 deletions
|
@ -404,7 +404,7 @@ function isstudent($courseid, $userid=0) {
|
||||||
global $USER;
|
global $USER;
|
||||||
|
|
||||||
if (!$userid) {
|
if (!$userid) {
|
||||||
return $USER->student[$courseid];
|
return !empty($USER->student[$courseid]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// $timenow = time(); // todo: add time check below
|
// $timenow = time(); // todo: add time check below
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/// If there are any errors in the standard libraries we want to know!
|
/// 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
|
/// Connect to the database using adodb
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue