Add key to every contact

This commit is contained in:
LEDfan 2014-04-18 14:30:44 +02:00
rodzic d23c4697d0
commit b78c1373b6

Wyświetl plik

@ -37,7 +37,12 @@ namespace OC {
$result = array();
foreach($this->address_books as $address_book) {
$r = $address_book->search($pattern, $searchProperties, $options);
$result = array_merge($result, $r);
$contacts = array();
foreach($r as $c){
$c['key'] = $address_book->getKey();
$contacts[] = $c;
}
$result = array_merge($result, $contacts);
}
return $result;