From 82f5919d1ccdd0bc834ac75b467451476673221d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Sep 2006 10:48:54 +0000 Subject: [PATCH] fixed sql error in compatibility function old_read (colum-prefix was not added) --- phpgwapi/inc/class.contacts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.contacts.inc.php b/phpgwapi/inc/class.contacts.inc.php index fd67c2defc..e1595cbbef 100644 --- a/phpgwapi/inc/class.contacts.inc.php +++ b/phpgwapi/inc/class.contacts.inc.php @@ -129,8 +129,8 @@ class contacts extends bocontacts { $fields = explode(',',$fields); } - if ($order && !strstr($order,'_')) $order = 'contact_'.$order; if (!$order) $order = $fields ? $fields[0] : 'org_name,n_family,n_given'; + if ($order && !strstr($order,'_')) $order = 'contact_'.$order; //echo '

contacts::search('.($cquery ? $cquery.'*' : $query).','.print_r($fields,true).",'$order $sort','','".($cquery ? '' : '%')."',false,'OR',".(!$limit ? 'false' : "array($start,$limit)").",".print_r($sfilter,true).");

\n"; $rows =& $this->search($cquery ? $cquery.'*' : $query,$fields,$order.($sort ? ' '.$sort : ''),'',