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'' ";