Skip to content

Commit

Permalink
fix: add check to prevent undefined index error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBlanchardAC committed Jun 4, 2024
1 parent 9505772 commit 9fea3cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/web/sys/SearchObject/SummonSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,12 @@ public function getLimitList() {

foreach($limitOption['counts'] as $value){
if ($value['value'] == 'true') {
$isApplied = isset($this->limiters[$limitId]) && $this->limiters[$limitId] == 'y' ? 1 : 0;

$availableLimits[$limitId] = [
'display' => $displayName,
'value' => $limitId,
'isApplied' => ($this->limiters[$limitId]) == 'y' ? 1 : 0,
'isApplied' => $isApplied,
'url' => $this->renderLinkWithLimiter($limitId),
'removalUrl' => $this->renderLinkWithoutLimiter($limitId),
];
Expand Down

0 comments on commit 9fea3cb

Please sign in to comment.