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:
Klaus Leithoff 2010-04-21 14:26:06 +00:00
parent a0a7c04171
commit d8d677864e

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 (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']);