mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Accept an integer parameter, as specified in function documentation. Used to throw an invalid argument warning.
This commit is contained in:
parent
9dfa6f6d4c
commit
5a9550ef31
@ -320,6 +320,9 @@ class addressbook_so
|
||||
}
|
||||
if (is_null($field_names)) $field_names = array_keys($this->customfields);
|
||||
|
||||
if(!is_array($ids) && is_numeric($ids)) {
|
||||
$ids = array((int)$ids);
|
||||
}
|
||||
foreach($ids as $key => $id)
|
||||
{
|
||||
if (!(int)$id) unset($ids[$key]);
|
||||
|
Loading…
Reference in New Issue
Block a user