From a8b4146b4e09a7224544d79067d86460b85b4a18 Mon Sep 17 00:00:00 2001 From: ceb Date: Fri, 11 Oct 2002 00:35:11 +0000 Subject: [PATCH] added missing ')' to search string in list function --- phpgwapi/inc/class.accounts_sql.inc.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index d63464b8ba..61c0cb7f4c 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -130,15 +130,11 @@ } else { - $whereclause .= ' WHERE '; + $whereclause .= ' WHERE ( '; } $whereclause .= " account_firstname LIKE '%$query%' OR account_lastname LIKE " - . "'%$query%' OR account_lid LIKE '%$query%' "; - if($whereclause) - { - $whereclause .= ' ) '; - } + . "'%$query%' OR account_lid LIKE '%$query%' )"; } $sql = "SELECT * FROM phpgw_accounts $whereclause $orderclause";