mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +00:00
Don't try and produce a sync_token for the root collection.
This commit is contained in:
parent
2c40db7d7e
commit
f32ec4b704
@ -1264,6 +1264,7 @@ EOQRY;
|
||||
*/
|
||||
function sync_token() {
|
||||
if ( $this->IsPrincipal() ) return null;
|
||||
if ( $this->collection_id() == 0 ) return null;
|
||||
if ( !isset($this->sync_token) ) {
|
||||
$sql = 'SELECT sync_token FROM sync_tokens WHERE collection_id = :collection_id ORDER BY sync_token DESC LIMIT 1';
|
||||
$params = array( ':collection_id' => $this->collection_id());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user