fixed addressbook "all" shows no contacts, reported on the lists

This commit is contained in:
Ralf Becker 2010-09-29 06:42:00 +00:00
parent a687714559
commit 9aebe5638a

View File

@ -245,7 +245,7 @@ class addressbook_sql extends so_sql
*/
function &search($criteria,$only_keys=True,$order_by='',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter=null,$join='',$need_full_no_count=false)
{
if ((int) $this->debug >= 4) echo "<p>socontacts_sql::search(".print_r($criteria,true).",".print_r($only_keys,true).",'$order_by','$extra_cols','$wildcard','$empty','$op','$start',".print_r($filter,true).",'$join')</p>\n";
if ((int) $this->debug >= 4) echo '<p>'.__METHOD__.'('.array2string($criteria).','.array2string($only_keys).",'$order_by','$extra_cols','$wildcard','$empty','$op','$start',".array2string($filter).",'$join')</p>\n";
$owner = isset($filter['owner']) ? $filter['owner'] : (isset($criteria['owner']) ? $criteria['owner'] : null);
@ -367,7 +367,7 @@ class addressbook_sql extends so_sql
++$extra_filter;
unset($filter[$name]);
}
switch($name)
switch((string)$name)
{
case 'owner':
case 'contact_owner':