parent
7e6e77b626
commit
7f0f8c634d
1 changed files with 3 additions and 3 deletions
|
@ -68,8 +68,8 @@ class abook_carddav extends addressbook_backend {
|
||||||
$nickname = substr($uri, $this->abook_uri_len);
|
$nickname = substr($uri, $this->abook_uri_len);
|
||||||
$label = (string)$vcard->ORG;
|
$label = (string)$vcard->ORG;
|
||||||
} else {
|
} else {
|
||||||
$nickname = (string)$vcard->NICKNAME;
|
$nickname = (string)$vcard->ORG;
|
||||||
$label = (string)$vcard->ORG;
|
$label = '';
|
||||||
}
|
}
|
||||||
if(!$email) {
|
if(!$email) {
|
||||||
$email = (string)$vcard->EMAIL;
|
$email = (string)$vcard->EMAIL;
|
||||||
|
@ -103,7 +103,7 @@ class abook_carddav extends addressbook_backend {
|
||||||
*/
|
*/
|
||||||
function run_query($query, $match_all=false, $limit=0) {
|
function run_query($query, $match_all=false, $limit=0) {
|
||||||
$ret = array();
|
$ret = array();
|
||||||
$all=$this->abook->query($query,["FN", "N", "EMAIL", "NICKNAME", "ORG"],$match_all,$limit);
|
$all=$this->abook->query($query,["FN", "N", "EMAIL", "ORG"],$match_all,$limit);
|
||||||
/*
|
/*
|
||||||
Returns an array of matched VCards:
|
Returns an array of matched VCards:
|
||||||
The keys of the array are the URIs of the vcards
|
The keys of the array are the URIs of the vcards
|
||||||
|
|
Loading…
Reference in a new issue