Fixed typo causing restore to existing courses not to work. MDL-14549 ; merged from 19_STABLE
This commit is contained in:
@@ -215,7 +215,7 @@
|
||||
|
||||
//If the user is a teacher and not a creator or we are restoring from within SITEID
|
||||
|
||||
if (!user_can_create_courses() || $id = SITEID) {
|
||||
if (!user_can_create_courses() || $id == SITEID) {
|
||||
$restore->course_id = $id;
|
||||
if ($restore->restoreto == 0) {
|
||||
$restore->deleting = true;
|
||||
|
||||
Reference in New Issue
Block a user