1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Fix PHP 5.3 compatibility

This commit is contained in:
Lukas Reschke 2015-07-18 22:08:36 +02:00
parent 94900c3959
commit 2a3b44e8da

View File

@ -120,7 +120,8 @@ class AddressbookProvider implements \OCP\IAddressBook {
SQL; SQL;
$params = array(); $params = array();
$params[] = $this->addressBook->getMetaData()['id']; $meta = $this->addressBook->getMetaData();
$params[] = $meta['id'];
foreach ($searchProperties as $property) { foreach ($searchProperties as $property) {
$params[] = $property; $params[] = $property;
$params[] = '%' . $pattern . '%'; $params[] = '%' . $pattern . '%';