mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 13:58:40 +01:00
fixed
This commit is contained in:
parent
1a26437f56
commit
14473b076c
@ -142,9 +142,14 @@
|
|||||||
$sql = "SELECT * from phpgw_categories WHERE (cat_appname='" . $this->app_name . "' $public_cats $parent_filter) AND "
|
$sql = "SELECT * from phpgw_categories WHERE (cat_appname='" . $this->app_name . "' $public_cats $parent_filter) AND "
|
||||||
. " $grant_cats $querymethod $filter $ordermethod";
|
. " $grant_cats $querymethod $filter $ordermethod";
|
||||||
|
|
||||||
|
if ($limit)
|
||||||
|
{
|
||||||
|
$limitmethod = " " . $this->db->limit($start);
|
||||||
|
}
|
||||||
|
|
||||||
$this->db2->query($sql,__LINE__,__FILE__);
|
$this->db2->query($sql,__LINE__,__FILE__);
|
||||||
$this->total_records = $this->db2->num_rows();
|
$this->total_records = $this->db2->num_rows();
|
||||||
$this->db->query($sql. " " . $this->db->limit($start,$limit),__LINE__,__FILE__);
|
$this->db->query($sql . $limitmethod,__LINE__,__FILE__);
|
||||||
//echo '<b>TEST:</b>' . $sql;
|
//echo '<b>TEST:</b>' . $sql;
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -238,7 +243,7 @@
|
|||||||
|
|
||||||
if ($format == 'select')
|
if ($format == 'select')
|
||||||
{
|
{
|
||||||
$cats = $this->return_array($type,$start,$limit,$query,$sort,$order,$public);
|
$cats = $this->return_array($type,$start,$limit = False,$query,$sort,$order,$public);
|
||||||
|
|
||||||
for ($i=0;$i<count($cats);$i++)
|
for ($i=0;$i<count($cats);$i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user