From 421c08008f80c5fe763d98d0a21c87e6cce1d2ba Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 26 Jul 2012 14:19:58 +0200 Subject: [PATCH] Fixing error when cleaning course --- main/coursecopy/classes/CourseRecycler.class.php | 4 ++-- main/inc/lib/main_api.lib.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/coursecopy/classes/CourseRecycler.class.php b/main/coursecopy/classes/CourseRecycler.class.php index ee0e076c44..bca07f2f47 100644 --- a/main/coursecopy/classes/CourseRecycler.class.php +++ b/main/coursecopy/classes/CourseRecycler.class.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. diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index 2c62448d49..5676ae34ad 100644 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -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"; }