Fixing error when cleaning course

skala
Julio Montoya 13 years ago
parent 5ced4198af
commit 421c08008f
  1. 4
      main/coursecopy/classes/CourseRecycler.class.php
  2. 2
      main/inc/lib/main_api.lib.php

@ -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_info = api_get_course_info($this->course->code);
$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";
}

Loading…
Cancel
Save