mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 14:11:29 +01:00
update
This commit is contained in:
parent
5b411bcd9f
commit
941f91ab7b
@ -139,17 +139,20 @@
|
||||
$querymethod = " AND (cat_name like '%$query%' OR cat_description like '%$query%') ";
|
||||
}
|
||||
|
||||
$sql = "SELECT * from phpgw_categories WHERE (cat_appname='" . $this->app_name . "' $public_cats $parent_filter) AND "
|
||||
. " $grant_cats $querymethod $filter $ordermethod";
|
||||
|
||||
if ($limit)
|
||||
{
|
||||
$limitmethod = " " . $this->db->limit($start);
|
||||
}
|
||||
|
||||
$sql = "SELECT * from phpgw_categories WHERE (cat_appname='" . $this->app_name . "' $public_cats $parent_filter) AND "
|
||||
. " $grant_cats $querymethod $filter";
|
||||
|
||||
$this->db2->query($sql,__LINE__,__FILE__);
|
||||
|
||||
$this->total_records = $this->db2->num_rows();
|
||||
$this->db->query($sql . $limitmethod,__LINE__,__FILE__);
|
||||
|
||||
$this->db->query($sql . $ordermethod . $limitmethod,__LINE__,__FILE__);
|
||||
|
||||
//echo '<b>TEST:</b>' . $sql;
|
||||
|
||||
$i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user