mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
[BridgeAbstract] fix undefined index issue (#3665)
* . * attempt to fix #2943 https://github.com/RSS-Bridge/rss-bridge/issues/2943 * Revert "." This reverts commitc0b6ccfea6
. * lint * Revert "attempt to fix #2943" This reverts commit9f1a66e48d
. * moved fix to BridgeAbstract * fix undefined index * lint
This commit is contained in:
parent
3e1e96e477
commit
4f5a492dde
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue