From 4f5a492dde31377e2fa168430f26c09dae1425e4 Mon Sep 17 00:00:00 2001 From: mruac Date: Mon, 11 Sep 2023 20:48:00 +0930 Subject: [PATCH] [BridgeAbstract] fix undefined index issue (#3665) * . * attempt to fix #2943 https://github.com/RSS-Bridge/rss-bridge/issues/2943 * Revert "." This reverts commit c0b6ccfea6ce873e9c9ce7c3600b3a96d9911468. * lint * Revert "attempt to fix #2943" This reverts commit 9f1a66e48d636a543e2171df212acf9731744bd0. * moved fix to BridgeAbstract * fix undefined index * lint --- lib/BridgeAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php index 36a77669..a69552fc 100644 --- a/lib/BridgeAbstract.php +++ b/lib/BridgeAbstract.php @@ -192,7 +192,7 @@ abstract class BridgeAbstract implements BridgeInterface if (isset($inputs[$name])) { $value = $inputs[$name]; } else { - if ($properties['type'] === 'checkbox') { + if ($properties['type'] ?? null === 'checkbox') { $value = false; } elseif (isset($properties['defaultValue'])) { $value = $properties['defaultValue'];