From 329fc5a72c763ae0bb0e60ded6cc65f846b181ee Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 17 Jan 2007 23:55:49 +0100 Subject: [PATCH] [svn r10776] Added small comment to warn against error --- main/course_info/infocours.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/course_info/infocours.php b/main/course_info/infocours.php index 0ad554af8f..fc923a7c61 100644 --- a/main/course_info/infocours.php +++ b/main/course_info/infocours.php @@ -1,5 +1,5 @@ validate() && is_settings_editable()) WHERE code = '".$course_code."'"; api_sql_query($sql, __FILE__, __LINE__); - //update course_settings table + //update course_settings table - this assumes those records exist, otherwise triggers an error $table_course_setting = Database::get_course_table(TABLE_COURSE_SETTING); if($update_values['email_alert_manager_on_new_doc'] != $values['email_alert_manager_on_new_doc']){ $sql = "UPDATE $table_course_setting SET value = ".(int)$update_values['email_alert_manager_on_new_doc']." WHERE variable = 'email_alert_manager_on_new_doc'' ";