1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Update addressbookprovider.php

This commit is contained in:
lupusmeatus 2015-03-22 04:14:55 +01:00
parent 7dbd285621
commit e7025a15ad

View File

@ -115,10 +115,12 @@ class AddressbookProvider implements \OCP\IAddressBook {
INNER JOIN `$addrTable` INNER JOIN `$addrTable`
ON `$addrTable`.id = `$contTable`.addressbookid ON `$addrTable`.id = `$contTable`.addressbookid
WHERE WHERE
( (`$contTable`.addressbookid = ?) AND
(
SQL; SQL;
$params = array(); $params = array();
$params[] = $this->addressBook->getMetaData()['id'];
foreach ($searchProperties as $property) { foreach ($searchProperties as $property) {
$params[] = $property; $params[] = $property;
$params[] = '%' . $pattern . '%'; $params[] = '%' . $pattern . '%';