diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-28 16:03:19 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-02 10:56:33 +0100 |
commit | 22de25c382c3eb621a351d223c1108caeb2cfde5 (patch) | |
tree | 9cf8fb175fd4320d00639c79d2787377aad28cbc /apps/dav/lib/carddav/addressbookimpl.php | |
parent | 847b1e3af0f4f76dd8d3fc683019a6de56c16957 (diff) | |
download | nextcloud-server-22de25c382c3eb621a351d223c1108caeb2cfde5.tar.gz nextcloud-server-22de25c382c3eb621a351d223c1108caeb2cfde5.zip |
PHP 5.4 compatibility
Diffstat (limited to 'apps/dav/lib/carddav/addressbookimpl.php')
-rw-r--r-- | apps/dav/lib/carddav/addressbookimpl.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/carddav/addressbookimpl.php b/apps/dav/lib/carddav/addressbookimpl.php index 240e40c9688..734e68f207c 100644 --- a/apps/dav/lib/carddav/addressbookimpl.php +++ b/apps/dav/lib/carddav/addressbookimpl.php @@ -178,7 +178,8 @@ class AddressBookImpl implements IAddressBook { protected function createUid() { do { $uid = $this->getUid(); - } while (!empty($this->backend->getContact($uid . '.vcf'))); + $contact = $this->backend->getContact($uid . '.vcf'); + } while (!empty($contact)); return $uid; } |