Initialize object with new stdClass.
This commit is contained in:
+1
-2
@@ -140,7 +140,7 @@
|
||||
$sortorder = get_field_sql('SELECT MIN(sortorder)-1 AS min
|
||||
FROM ' . $CFG->prefix . 'course WHERE category=' . $destcategory->id) || 1000;
|
||||
|
||||
$newcourse = NULL;
|
||||
$newcourse = new stdClass;
|
||||
$newcourse->id = $courseid;
|
||||
$newcourse->category = $destcategory->id;
|
||||
$newcourse->sortorder = $sortorder;
|
||||
@@ -155,7 +155,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Hide or show a course
|
||||
|
||||
if ((isset($hide) or isset($show)) and confirm_sesskey()) {
|
||||
|
||||
Reference in New Issue
Block a user