diff --git a/lib/addressbookprovider.php b/lib/addressbookprovider.php index 9e447102..c94b91d1 100644 --- a/lib/addressbookprovider.php +++ b/lib/addressbookprovider.php @@ -120,7 +120,8 @@ class AddressbookProvider implements \OCP\IAddressBook { SQL; $params = array(); - $params[] = $this->addressBook->getMetaData()['id']; + $meta = $this->addressBook->getMetaData(); + $params[] = $meta['id']; foreach ($searchProperties as $property) { $params[] = $property; $params[] = '%' . $pattern . '%';