mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
PdoAddressBook ORDER BY deleted DESC
to prevent sync and export issues
This commit is contained in:
parent
08d4cf3648
commit
2b7962805f
1 changed files with 6 additions and 3 deletions
|
@ -107,9 +107,12 @@ class PdoAddressBook
|
|||
private function prepareDatabaseSyncData() : array
|
||||
{
|
||||
$aResult = array();
|
||||
$oStmt = $this->prepareAndExecute('SELECT id_contact, id_contact_str, changed, deleted, etag FROM rainloop_ab_contacts WHERE id_user = :id_user', array(
|
||||
':id_user' => array($this->iUserID, \PDO::PARAM_INT)
|
||||
));
|
||||
$oStmt = $this->prepareAndExecute('SELECT id_contact, id_contact_str, changed, deleted, etag
|
||||
FROM rainloop_ab_contacts
|
||||
WHERE id_user = :id_user
|
||||
ORDER BY deleted DESC',
|
||||
array(':id_user' => array($this->iUserID, \PDO::PARAM_INT))
|
||||
);
|
||||
|
||||
if ($oStmt) {
|
||||
$aFetch = $oStmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||
|
|
Loading…
Reference in a new issue