mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
fix for strange behavior of isset for an given array-element, when the tested var is a string; solution: use isset together with is_array
This commit is contained in:
parent
a0a7c04171
commit
d8d677864e
@ -316,7 +316,7 @@ class addressbook_sql extends so_sql_cf
|
||||
$filter[] = $this->table_name.'.contact_owner='.(int)$filter['owner'];
|
||||
unset($filter['owner']);
|
||||
}
|
||||
if (is_array($criteria) && array_key_exists('owner',$criteria))
|
||||
if (is_array($criteria) && isset($criteria['owner']))
|
||||
{
|
||||
$criteria[] = $this->table_name.'.contact_owner='.(int)$criteria['owner'];
|
||||
unset($criteria['owner']);
|
||||
|
Loading…
Reference in New Issue
Block a user