mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fixed SQL queries
This commit is contained in:
parent
5e97b462c4
commit
d933e70c72
@ -77,20 +77,20 @@
|
||||
switch($_action)
|
||||
{
|
||||
case 'modify':
|
||||
$query .= "sync_modified > '".$this->db->to_timestamp($_ts)."' and sync_modified > sync_deleted";
|
||||
$query .= "sync_modified > '".$this->db->to_timestamp($_ts)."' and sync_deleted is null";
|
||||
break;
|
||||
case 'delete':
|
||||
$query .= "sync_deleted > '".$this->db->to_timestamp($_ts)."'";
|
||||
break;
|
||||
case 'add':
|
||||
$query .= "sync_added > '".$this->db->to_timestamp($_ts)."' and sync_added > sync_deleted and sync_added > sync_modified";
|
||||
$query .= "sync_added > '".$this->db->to_timestamp($_ts)."' and sync_deleted is null and sync_modified is null ";
|
||||
break;
|
||||
default:
|
||||
// no valid $_action set
|
||||
return array();
|
||||
break;
|
||||
}
|
||||
|
||||
//Horde::logMessage("SymcML: egwcontactssync $query", __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
||||
$this->db->query($query, __LINE__, __FILE__);
|
||||
|
||||
$guidList = array();
|
||||
|
Loading…
Reference in New Issue
Block a user