File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -155,15 +155,17 @@ protected function getArrayItems($items)
155155 public function getPagination ()
156156 {
157157 if (self ::$ is_paginate ){
158- $ pagination = self ::$ pagination ->pagination ;
159- return (object ) [
160- 'limit ' => (int ) $ pagination ->limit ,
161- 'offset ' => (int ) $ pagination ->offset ,
162- 'page ' => (int ) $ pagination ->page ,
163- 'pageCount ' => (int ) $ pagination ->pageCount ,
164- 'perPage ' => (int ) $ pagination ->perPage ,
165- 'totalCount ' => (int ) $ pagination ->totalCount ,
166- ];
158+ if (self ::$ pagination ){
159+ $ pagination = self ::$ pagination ->pagination ;
160+ return (object ) [
161+ 'limit ' => (int ) $ pagination ->limit ,
162+ 'offset ' => (int ) $ pagination ->offset ,
163+ 'page ' => (int ) $ pagination ->page ,
164+ 'pageCount ' => (int ) $ pagination ->pageCount ,
165+ 'perPage ' => (int ) $ pagination ->perPage ,
166+ 'totalCount ' => (int ) $ pagination ->totalCount ,
167+ ];
168+ }
167169 }
168170 }
169171
You can’t perform that action at this time.
0 commit comments