Permalink
Browse files

refs #2828 Fixed missing test on PaginatorHelper

  • Loading branch information...
1 parent 6ba26b0 commit e587faf9c179b38d3e4cba76c859a065c854579a @ch0c4 ch0c4 committed Feb 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/View/Helper/PaginatorHelper.php
@@ -426,7 +426,7 @@ public function url($options = array(), $model = null) {
if (!empty($url['page']) && $url['page'] == 1) {
$url['page'] = null;
}
- if (isset($paging['sortDefault']) && isset($paging['directionDefault']) && $url['sort'] === $paging['sortDefault'] && $url['direction'] === $paging['directionDefault'] ) {
+ if (isset($paging['sortDefault'], $paging['directionDefault'], $url['sort'], $url['direction']) && $url['sort'] === $paging['sortDefault'] && $url['direction'] === $paging['directionDefault'] ) {
$url['sort'] = $url['direction'] = null;
}
return parent::url($url);

0 comments on commit e587faf

Please sign in to comment.