forked from extern/egroupware
fix for strange behavior of isset for an given array-element, when the tested var is a string
This commit is contained in:
parent
4e3769041f
commit
a0a7c04171
@ -316,7 +316,7 @@ class addressbook_sql extends so_sql_cf
|
|||||||
$filter[] = $this->table_name.'.contact_owner='.(int)$filter['owner'];
|
$filter[] = $this->table_name.'.contact_owner='.(int)$filter['owner'];
|
||||||
unset($filter['owner']);
|
unset($filter['owner']);
|
||||||
}
|
}
|
||||||
if (isset($criteria['owner']))
|
if (is_array($criteria) && array_key_exists('owner',$criteria))
|
||||||
{
|
{
|
||||||
$criteria[] = $this->table_name.'.contact_owner='.(int)$criteria['owner'];
|
$criteria[] = $this->table_name.'.contact_owner='.(int)$criteria['owner'];
|
||||||
unset($criteria['owner']);
|
unset($criteria['owner']);
|
||||||
|
Loading…
Reference in New Issue
Block a user