fix sql error on update

This commit is contained in:
Ralf Becker 2014-10-28 22:09:12 +00:00
parent 83fd536408
commit f9dd84adb5

View File

@ -2310,8 +2310,8 @@ function calendar_upgrade14_1()
{
$GLOBALS['egw_setup']->db->query(
"UPDATE egw_cal
SET cal_reference=0,cal_etag=cal_etag+1,cal_modifier=0,cal_modified=".time().
"WHERE cal_reference != 0 AND cal_id IN (SELECT cal_id FROM egw_cal_repeats)", __LINE__, __FILE__);
SET cal_reference=0,cal_etag=cal_etag+1,cal_modifier=0,cal_modified=".time()."
WHERE cal_reference != 0 AND cal_id IN (SELECT cal_id FROM egw_cal_repeats)", __LINE__, __FILE__);
foreach($GLOBALS['egw_setup']->db->query(
"SELECT DISTINCT master.cal_id,egw_cal_user.cal_user_type,egw_cal_user.cal_user_id,'E' AS cal_status