Skip to content

Commit

Permalink
Merge pull request #121 from wdammak/patch-17
Browse files Browse the repository at this point in the history
Update HelperList.php
  • Loading branch information
rohit053 authored Oct 16, 2020
2 parents 354574d + 19617e3 commit 73ccb9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/helper/HelperList.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function displayListContent()
$position_group_identifier = Category::getRootCategory()->id;
}

$positions = array_map(create_function('$elem', 'return (int)($elem[\'position\']);'), $this->_list);
$positions = array_map(function ($elem) { return (int)($elem['position']); }, $this->_list);
sort($positions);
}

Expand Down Expand Up @@ -623,7 +623,7 @@ public function displayListHeader()
if (is_string($value)) {
$value = json_decode($value, true);
}
if (!Validate::isCleanHtml($value[0]) || !Validate::isCleanHtml($value[1])) {
if (isset($value[0]) && !Validate::isCleanHtml($value[0]) || isset($value[1]) && !Validate::isCleanHtml($value[1])) {
$value = '';
}
$name = $this->list_id.'Filter_'.(isset($params['filter_key']) ? $params['filter_key'] : $key);
Expand Down

0 comments on commit 73ccb9e

Please sign in to comment.