refs #backport-paginate-multiple-queries fix array notation to be compatible with php 5.3

This commit is contained in:
Rodrigo Pérez 2016-11-04 11:19:43 +00:00
parent 20da4484de
commit c0aa418984

View file

@ -461,7 +461,7 @@ class PaginatorHelper extends AppHelper {
unset($url['?']['page']);
}
if (!empty($paging['queryScope'])) {
$url = [$paging['queryScope'] => $url];
$url = array($paging['queryScope'] => $url);
if (empty($url[$paging['queryScope']]['page'])) {
unset($url[$paging['queryScope']]['page']);
}