Skip to content

Commit

Permalink
Adding extra param check to prettyurl generation with pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Stikki committed Dec 7, 2014
1 parent 601fad4 commit 26ff282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ListIt2.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ function CreatePrettyLink($id, $action, $returnid='', $contents='', $params=arra
$string_array[] = $params['id_hierarchy'];

// Pagelimit stuff, won't work together with hierarchy stuff.
if(isset($params['pagelimit'])) {
if(isset($params['pagelimit']) && isset($params['pagenumber'])) {

$string_array[] = 'page';
$string_array[] = $params['pagenumber'];
Expand Down

0 comments on commit 26ff282

Please sign in to comment.