From 42ae978a6ec4b7b9e7e8b346160462412842f832 Mon Sep 17 00:00:00 2001 From: Bart Mollet Date: Thu, 11 Jan 2007 10:49:21 +0100 Subject: [PATCH] [svn r10668] Fixed wrong quoting --- main/inc/lib/system_announcements.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/system_announcements.lib.php b/main/inc/lib/system_announcements.lib.php index c99465b836..d93e165547 100644 --- a/main/inc/lib/system_announcements.lib.php +++ b/main/inc/lib/system_announcements.lib.php @@ -315,7 +315,7 @@ class SystemAnnouncementManager $end = $date_end[0]."-".$date_end[1]."-".$date_end[2]." ".$date_end[3].":".$date_end[4].":".$date_start[5]; $title = mysql_real_escape_string($title); $content = mysql_real_escape_string($content); - $lang = is_null($lang) ? 'NULL' : "\'".mysql_real_escape_string($lang)."\'"; + $lang = is_null($lang) ? 'NULL' : "'".mysql_real_escape_string($lang)."'"; $sql = "INSERT INTO ".$db_table." (`title`,`content`,`date_start`,`date_end`,`visible_teacher`,`visible_student`,`visible_guest`, `lang`) VALUES ('".$title."','".$content."','".$start."','".$end."','".$visible_teacher."','".$visible_student."','".$visible_guest."',".$lang.")"; return api_sql_query($sql,__FILE__,__LINE__);