From 3ecf11dfc60001cd37259a55f0237f814efcd61c Mon Sep 17 00:00:00 2001 From: Ayke Halder Date: Wed, 3 Jan 2024 19:13:40 +0100 Subject: [PATCH] Hide NOTICE on undefined index for missing configuration PagePerformance '*_cap_*' --- plugins/PagePerformance/Columns/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PagePerformance/Columns/Base.php b/plugins/PagePerformance/Columns/Base.php index 3b844d9a60f..7c44db3510b 100644 --- a/plugins/PagePerformance/Columns/Base.php +++ b/plugins/PagePerformance/Columns/Base.php @@ -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;