Skip to content

Commit

Permalink
Hide NOTICE on undefined index for missing configuration PagePerforma…
Browse files Browse the repository at this point in the history
…nce '*_cap_*'
  • Loading branch information
rr-it committed Jan 3, 2024
1 parent 27e6b66 commit 3ecf11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/PagePerformance/Columns/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract public function getRequestParam();
private function getConfigValueCap()
{
try {
$valueCap = Config::getInstance()->PagePerformance[$this->columnName . '_cap_' . $this->type];
$valueCap = Config::getInstance()->PagePerformance[$this->columnName . '_cap_' . $this->type] ?? 0;
} catch (Exception $ex) {
// 0 disables cap
return 0;
Expand Down

0 comments on commit 3ecf11d

Please sign in to comment.