diff --git a/src/app/backend/controllers/CustomersController.php b/src/app/backend/controllers/CustomersController.php index 5c75e5d..4df2485 100644 --- a/src/app/backend/controllers/CustomersController.php +++ b/src/app/backend/controllers/CustomersController.php @@ -38,6 +38,10 @@ class CustomersController extends \Phalcon\Mvc\Controller $data = $this->models->getCustomers()->getAllData($page); $total = $this->models->getCustomers()->countData(); } + else { + $data = $this->models->getCustomers()->getAllData($page); + $total = $this->models->getCustomers()->countData(); + } if( $total['0']['total'] > \config::get( 'limits/items') ) { -- libgit2 0.21.4