Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update

  • Loading branch information...
commit c371ef8e72466d3378232302fac4dda28814b98c 1 parent 5696ac9
@williamjxj authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 f1Class.php
View
4 f1Class.php
@@ -207,7 +207,7 @@ function get_item_contents($iid)
from contents where language='" . $this -> lang . "' and iid=$iid order by iid desc limit 0, ".ROWS_PER_PAGE;
if(!isset($_SESSION[PACKAGE]['cate_item']) || empty($_SESSION[PACKAGE]['cate_item']['total_pages'])) {
- $total = $this->get_item_count($iid);
+ $total = $this->get_category_count($cate_id);
$total_pages = ceil($total / ROWS_PER_PAGE);
$_SESSION[PACKAGE]['cate_item']['total'] = $total;
$_SESSION[PACKAGE]['cate_item']['total_pages'] = $total_pages;
@@ -218,7 +218,7 @@ function get_item_contents($iid)
else {
$this->__p($_SESSION[PACKAGE]);
exit;
- }
+ }
$res = $this -> mdb2 -> queryAll($sql, '', MDB2_FETCHMODE_ASSOC);
if (PEAR::isError($res))
Please sign in to comment.
Something went wrong with that request. Please try again.