Cast query result to int

Else we never create the default address book
This commit is contained in:
Roeland Jago Douma 2016-09-09 19:15:27 +02:00
parent 3fc37b2fc5
commit 94fb5bcbae
No known key found for this signature in database
GPG key ID: 1E152838F164D13B
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}
/**

View file

@ -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();
}
/**