mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03: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
|
private function prepareDatabaseSyncData() : array
|
||||||
{
|
{
|
||||||
$aResult = 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(
|
$oStmt = $this->prepareAndExecute('SELECT id_contact, id_contact_str, changed, deleted, etag
|
||||||
':id_user' => array($this->iUserID, \PDO::PARAM_INT)
|
FROM rainloop_ab_contacts
|
||||||
));
|
WHERE id_user = :id_user
|
||||||
|
ORDER BY deleted DESC',
|
||||||
|
array(':id_user' => array($this->iUserID, \PDO::PARAM_INT))
|
||||||
|
);
|
||||||
|
|
||||||
if ($oStmt) {
|
if ($oStmt) {
|
||||||
$aFetch = $oStmt->fetchAll(\PDO::FETCH_ASSOC);
|
$aFetch = $oStmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue