@ -21,8 +21,8 @@ class CourseRecycler
*/
function CourseRecycler($course) {
$this->course = $course;
$this->course_info = api_get_course_info($this->course->code);
$this->course_id = $course->info['real_id'];
$this->course_id = $this->course_info['real_id'];
}
/**
* Delete all items from the course.
@ -3074,7 +3074,7 @@ function api_item_property_update($_course, $tool, $item_id, $lastedit_type, $us
$visibility = '1';
$filter .= $to_filter;
$sql = "UPDATE $TABLE_ITEMPROPERTY
SET lastedit_date='$time', lastedit_user_id='$user_id' $set_type
SET lastedit_date = '$time', lastedit_user_id='$user_id' $set_type
WHERE $filter";