fixed warning from clone($SITE) during site setup

This commit is contained in:
skodak
2006-05-29 20:30:07 +00:00
parent b4ab174902
commit c446109283
+5 -2
View File
@@ -225,14 +225,17 @@ global $HTTPSPAGEREQUIRED;
* If $SITE global from {@link get_site()} is set then SITEID to $SITE->id, otherwise set to 1.
*/
define('SITEID', $SITE->id);
/// And the 'default' course
$COURSE = clone($SITE); // For now. This will usually get reset later in require_login() etc.
} else {
/**
* @ignore
*/
define('SITEID', 1);
/// And the 'default' course
$COURSE = new object; // no site created yet
$COURSE->id = 1;
}
/// And the 'default' course
$COURSE = clone($SITE); // For now. This will usually get reset later in require_login() etc.
/// Set a default enrolment configuration (see bug 1598)