Skip to content

Commit

Permalink
refs #2828 Fixed missing test on PaginatorHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ch0c4 committed Feb 14, 2014
1 parent 6ba26b0 commit e587faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/PaginatorHelper.php
Expand Up @@ -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);
Expand Down

0 comments on commit e587faf

Please sign in to comment.