diff --git a/module/branch/control.php b/module/branch/control.php index 302d7ca67f..219179f244 100644 --- a/module/branch/control.php +++ b/module/branch/control.php @@ -34,7 +34,7 @@ class branch extends control if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $recTotal = count($branchList); $pager = new pager($recTotal, $recPerPage, $pageID); - $branchList = array_chunk($branchList, $recPerPage); + $branchList = array_chunk($branchList, $pager->recPerPage); $this->view->title = $this->lang->branch->manage; $this->view->branchList = empty($branchList) ? $branchList : $branchList[$pageID - 1];