Accept an integer parameter, as specified in function documentation. Used to throw an invalid argument warning.

This commit is contained in:
Nathan Gray 2008-07-10 20:22:58 +00:00
parent 9dfa6f6d4c
commit 5a9550ef31

View File

@ -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]);