This commit is contained in:
ceb 2003-07-26 23:37:55 +00:00
parent 74040b0444
commit 459fceb00f

View File

@ -315,8 +315,7 @@
. $querymethod; . $querymethod;
$this->db2->query($sql . $parent_select,__LINE__,__FILE__); $this->db2->query($sql . $parent_select,__LINE__,__FILE__);
//$total_mains = $this->db2->num_rows(); $total = $this->db2->num_rows();
$this->total_records = $this->db2->num_rows();
if ($limit) if ($limit)
{ {
@ -344,6 +343,7 @@
else else
{*/ {*/
$this->db->query($sql . $sub_select . $ordermethod,__LINE__,__FILE__); $this->db->query($sql . $sub_select . $ordermethod,__LINE__,__FILE__);
$total += $this->db->num_rows();
//} //}
$subcats = $this->db2cats(); $subcats = $this->db2cats();
@ -368,8 +368,7 @@
$num_cats = count($cats); $num_cats = count($cats);
} }
} }
//$this->total_records = count($cats); $this->total_records = $total;
//$this->total_records = $total_mains + $total_subs;
return $cats; return $cats;
} }