update return_array

This commit is contained in:
bettina 2001-03-30 21:12:56 +00:00
parent 106ae427a7
commit 035693bef3

View File

@ -126,13 +126,13 @@
if ($query)
{
$sql = "SELECT * from phpgw_categories WHERE cat_appname='" . $this->app_name . "' AND "
. " $grant_cats $public_cats AND (cat_name like '%$query%' OR cat_description like '%$query%') $filter $ordermethod";
$sql = "SELECT * from phpgw_categories WHERE (cat_appname='" . $this->app_name . "' $public_cats) AND "
. " $grant_cats AND (cat_name like '%$query%' OR cat_description like '%$query%') $filter $ordermethod";
}
else
{
$sql = "SELECT * from phpgw_categories WHERE cat_appname='" . $this->app_name . "' AND "
. " $grant_cats $public_cats $filter $ordermethod";
$sql = "SELECT * from phpgw_categories WHERE (cat_appname='" . $this->app_name . "' $public_cats) AND "
. " $grant_cats $filter $ordermethod";
}
$this->db2->query($sql,__LINE__,__FILE__);