From: Thomas Müller Date: Thu, 28 Jan 2016 15:03:19 +0000 (+0100) Subject: PHP 5.4 compatibility X-Git-Tag: v9.0beta1~123^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=22de25c382c3eb621a351d223c1108caeb2cfde5;p=nextcloud-server.git PHP 5.4 compatibility --- 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; }