Skip to content
Snippets Groups Projects
Commit 0a482aa0 authored by Bitha17's avatar Bitha17
Browse files

minor fix params

parent 4ae6b7ea
No related merge requests found
......@@ -33,7 +33,7 @@ class EventController {
return $this->eventModel->getAllEvents();
}
public function paginateEvents($page=1,$pagesize=10,$events) {
public function paginateEvents($events,$page=1,$pagesize=10) {
$maxpage = ceil(count($events)/$pagesize);
if ($page > $maxpage) {
$page = $maxpage;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment