fix for strange behavior of isset for an given array-element, when the tested var is a string

This commit is contained in:
Klaus Leithoff 2010-04-21 13:50:59 +00:00
parent 4e3769041f
commit a0a7c04171

View File

@ -316,7 +316,7 @@ class addressbook_sql extends so_sql_cf
$filter[] = $this->table_name.'.contact_owner='.(int)$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'];
unset($criteria['owner']);