mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
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;
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user