From e9bcd7a91b12a9826484e0b5d4bbf40b8ca17f36 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Mar 2001 07:44:01 +0000 Subject: [PATCH] Fix if no grants are set - this is because of changes for cat_id --- addressbook/inc/class.contacts_sql.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/class.contacts_sql.inc.php b/addressbook/inc/class.contacts_sql.inc.php index 483c502edf..6b93907fd5 100644 --- a/addressbook/inc/class.contacts_sql.inc.php +++ b/addressbook/inc/class.contacts_sql.inc.php @@ -374,7 +374,7 @@ } else { - $fwhere .= ' AND '; + $fwhere .= ') '; } @@ -431,11 +431,11 @@ . "org_name LIKE '%$query%' OR org_unit LIKE '%$query%') " . $fand . $filtermethod . $ordermethod . " " . $limit,__LINE__,__FILE__); } else { - $this->db3->query("SELECT id,lid,tid,owner,access $t_fields FROM $this->std_table " . $fwhere + $this->db3->query("SELECT id,lid,tid,owner,access,cat_id $t_fields FROM $this->std_table " . $fwhere . $filtermethod,__LINE__,__FILE__); $this->total_records = $this->db3->num_rows(); - $this->db->query("SELECT id,lid,tid,owner,access $t_fields FROM $this->std_table " . $fwhere + $this->db->query("SELECT id,lid,tid,owner,access,cat_id $t_fields FROM $this->std_table " . $fwhere . $filtermethod . " " . $ordermethod . " " . $limit,__LINE__,__FILE__); }