]> source.dussan.org Git - nextcloud-server.git/commitdiff
PHP 5.4 compatibility
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 28 Jan 2016 15:03:19 +0000 (16:03 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 2 Feb 2016 09:56:33 +0000 (10:56 +0100)
apps/dav/lib/carddav/addressbookimpl.php

index 240e40c9688040a31586a070eb9c59e8ed68d42c..734e68f207c9da40123f4d1cbbf5dbdc8917ef33 100644 (file)
@@ -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;
        }