From ef270cd638f0e65864b71e9f11d407f9953820ec Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 28 Jan 2019 13:30:31 +0100 Subject: [PATCH] Make settingValue function silent for undefined inde --- Changelog | 1 + app/Models/Settings.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 81afdf4c1..623303fc5 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-01-28 DariusIII + * Chg: Make settingValue function silent for undefined index * Fix: Fix check for not empty collections table in Forking class * Chg: Update composer/ca-bundle (1.1.3 => 1.1.4) * Fix: Fix wrong date calculation in safeBackfill function diff --git a/app/Models/Settings.php b/app/Models/Settings.php index 1b2bfae52..ac3794e5d 100644 --- a/app/Models/Settings.php +++ b/app/Models/Settings.php @@ -173,7 +173,7 @@ class Settings extends Model [ 'section' => $match[1] ?? '', 'subsection' => $match[2] ?? '', - 'name' => $match[3], + 'name' => $match[3] ?? '', ] )->value('value');