Improved idea #344

This commit is contained in:
the-djmaze 2022-05-20 08:37:24 +02:00
parent a57d4dc4b1
commit 3ab1725bb6

View file

@ -154,12 +154,15 @@ class PdoAddressBook
$sPath = $oClient->__UrlPath__;
$time = \microtime(true);
$aRemoteSyncData = $this->prepareDavSyncData($oClient, $sPath);
if (false === $aRemoteSyncData)
{
\SnappyMail\Log::info('PdoAddressBook', 'Sync() no data to sync');
return false;
}
$time = \microtime(true) - $time;
\SnappyMail\HTTP\Stream::JSON(['messsage'=>"Fetched remote data in {$time} seconds"]);
$aDatabaseSyncData = $this->prepareDatabaseSyncData($this->iUserID);