PHP 5.4 compatibility

This commit is contained in:
Thomas Müller 2016-01-28 16:03:19 +01:00
parent 847b1e3af0
commit 22de25c382

View 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;
}