From 7b95aa73b4be2749c25ae20c183c13af1341be08 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Nov 2016 09:40:16 +0100 Subject: [PATCH] * CardDAV/Addressbook/PostgreSQL: fix SQL error, remove MySQL only FROM_UNIXTIME with our db abstration version --- addressbook/inc/class.addressbook_groupdav.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index d8de480b94..dc490b6265 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -292,7 +292,7 @@ class addressbook_groupdav extends Api\CalDAV\Handler if ($sync_collection_report) { list(,$sync_token) = explode('>', $filter[0]); - $where[] = 'list_modified>FROM_UNIXTIME('.(int)$sync_token.')'; + if ((int)$sync_token) $where[] = 'list_modified>'.$GLOBALS['egw']->db->from_unixtime((int)$sync_token); } if (isset($filter[self::$path_attr])) // multiget report? {