forked from extern/egroupware
fixed link_query hook, it returned array('') instead of array() for nothing found
This commit is contained in:
parent
b71ad4baed
commit
f4e79928f6
@ -727,9 +727,12 @@ class bocontacts extends socontacts
|
|||||||
$criteria[$col] = $pattern;
|
$criteria[$col] = $pattern;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach((array) parent::search($criteria,false,'org_name,n_family,n_given','','%',false,'OR') as $contact)
|
if (($contacts = parent::search($criteria,false,'org_name,n_family,n_given','','%',false,'OR')))
|
||||||
{
|
{
|
||||||
$result[$contact['id']] = $this->link_title($contact);
|
foreach($contacts as $contact)
|
||||||
|
{
|
||||||
|
$result[$contact['id']] = $this->link_title($contact);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user