From df41f9fefe7df837f8228ca2eef09e55054b7359 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 26 Mar 2001 13:08:59 +0000 Subject: [PATCH] More adjustment to sql filter strings --- addressbook/inc/class.contacts_sql.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.contacts_sql.inc.php b/addressbook/inc/class.contacts_sql.inc.php index 52121bc3a5..d9afac4455 100644 --- a/addressbook/inc/class.contacts_sql.inc.php +++ b/addressbook/inc/class.contacts_sql.inc.php @@ -368,7 +368,12 @@ } } - $fwhere .= $filtermethod . " AND (owner=" . $phpgw_info['user']['account_id']; + if (!$filtermethod) { + $fwhere .= " WHERE (owner=" . $phpgw_info['user']['account_id']; + } else { + $fwhere .= $filtermethod . " AND (owner=" . $phpgw_info['user']['account_id']; + } + if (is_array($this->grants)) { $grants = $this->grants;