Cast query result to int
Else we never create the default address book
This commit is contained in:
parent
3fc37b2fc5
commit
94fb5bcbae
2 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
$query->andWhere($query->expr()->neq('uri', $query->createNamedParameter(BirthdayService::BIRTHDAY_CALENDAR_URI)));
|
||||
}
|
||||
|
||||
return $query->execute()->fetchColumn();
|
||||
return (int)$query->execute()->fetchColumn();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -111,7 +111,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
|||
->from('addressbooks')
|
||||
->where($query->expr()->eq('principaluri', $query->createNamedParameter($principalUri)));
|
||||
|
||||
return $query->execute()->fetchColumn();
|
||||
return (int)$query->execute()->fetchColumn();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue