Initialize object with new stdClass.

This commit is contained in:
defacer
2005-04-26 02:06:38 +00:00
parent 8f6579f472
commit 208fc3a5f0
+1 -2
View File
@@ -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()) {