diff --git a/application/models/user_model.php b/application/models/user_model.php index 3f5caecc..3629a334 100644 --- a/application/models/user_model.php +++ b/application/models/user_model.php @@ -22,7 +22,7 @@ function userListingCount($searchText = '') $this->db->where('BaseTbl.roleId !=', 1); $query = $this->db->get(); - return count($query->result()); + return $query->num_rows(); } /**