mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[ParameterValidator] Handle missing parameter type (#1057)
* [ParameterValidator] Handle missing parameter type
This commit is contained in:
parent
50c90eb5df
commit
380fdf2e40
@ -195,16 +195,14 @@ class ParameterValidator {
|
|||||||
foreach($set as $id => $properties) {
|
foreach($set as $id => $properties) {
|
||||||
if(isset($data[$id]) && !empty($data[$id])) {
|
if(isset($data[$id]) && !empty($data[$id])) {
|
||||||
$queriedContexts[$context] = true;
|
$queriedContexts[$context] = true;
|
||||||
} elseif(isset($properties['required'])
|
} elseif (isset($properties['type'])
|
||||||
&& $properties['required'] === true
|
&& ($properties['type'] === 'checkbox' || $properties['type'] === 'list')) {
|
||||||
&& isset($properties['type'])
|
continue;
|
||||||
&& $properties['type'] !== 'checkbox'
|
} elseif(isset($properties['required']) && $properties['required'] === true) {
|
||||||
&& $properties['type'] !== 'list') {
|
|
||||||
$queriedContexts[$context] = false;
|
$queriedContexts[$context] = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Abort if one of the globally required parameters is not satisfied
|
// Abort if one of the globally required parameters is not satisfied
|
||||||
|
Loading…
Reference in New Issue
Block a user