Skip to content

Commit

Permalink
Merge pull request #7896 from Harmageddon/view_category_maxlevel_all
Browse files Browse the repository at this point in the history
Use PHP_INT_MAX for maxLevel all in category view.
  • Loading branch information
rdeutz committed Oct 27, 2015
2 parents baaaaa6 + 804a631 commit 8bf09eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/legacy/view/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function commonCategoryDisplay()
// Escape strings for HTML output
$this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx'));

$maxLevel = $params->get('maxLevel', -1);
$maxLevel = $params->get('maxLevel', -1) < 0 ? PHP_INT_MAX : $params->get('maxLevel', PHP_INT_MAX);
$this->maxLevel = &$maxLevel;
$this->state = &$state;
$this->items = &$items;
Expand Down

0 comments on commit 8bf09eb

Please sign in to comment.