From da981bb02f3cb67e964d867acfd9284806a45ada Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 9 Aug 2009 07:51:27 +0000 Subject: [PATCH] "fixed problem reported in bug #2202 and on the devel list: Database Error when modifying the time of a calendar event wrong SQL (UPDATE with ORDER BY) was introduce in SyncML-1.2 patch, no idea what the idea behind was ..." --- calendar/inc/class.calendar_so.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 5dab1fb47f..1153892e3a 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -752,7 +752,7 @@ ORDER BY cal_user_type, cal_usre_id { // move the recur-date of the participants $this->db->query("UPDATE $this->user_table SET cal_recur_date=cal_recur_date+$move_start WHERE $where AND cal_recur_date ". - ((int)$change_since ? '>= '.(int)$change_since : '!= 0') . " ORDER BY cal_recur_date DESC",__LINE__,__FILE__); + ((int)$change_since ? '>= '.(int)$change_since : '!= 0'),__LINE__,__FILE__); } if ($move_start || $move_end) {