aboutsummaryrefslogtreecommitdiff
path: root/lib/BridgeAbstract.php
diff options
context:
space:
mode:
authorGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-11-01 15:29:16 +0100
committerGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-11-01 15:29:16 +0100
commit5f64fe251681b15ee9ef34ed92475b041b5efcd0 (patch)
treef2b79b8ff0d9bd3a6020192b4a9fe759e3b48fad /lib/BridgeAbstract.php
parent50eee7e7b36e21e03aed217395ee7f9dd0f938d8 (diff)
downloadrss-bridge-5f64fe251681b15ee9ef34ed92475b041b5efcd0.tar.gz
rss-bridge-5f64fe251681b15ee9ef34ed92475b041b5efcd0.tar.zst
rss-bridge-5f64fe251681b15ee9ef34ed92475b041b5efcd0.zip
[BridgeAbstract] Fix broken assignment of defaultValue
setInputs() currently looks if the global array defines a 'value' for a given parameter, but that isn't supported by the API. It needs to be 'defaultValue'.
Diffstat (limited to 'lib/BridgeAbstract.php')
-rw-r--r--lib/BridgeAbstract.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php
index b4eb9ff5..c8ad79c5 100644
--- a/lib/BridgeAbstract.php
+++ b/lib/BridgeAbstract.php
@@ -165,8 +165,8 @@ abstract class BridgeAbstract implements BridgeInterface {
foreach(static::PARAMETERS['global'] as $name => $properties) {
if(isset($inputs[$name])) {
$value = $inputs[$name];
- } elseif(isset($properties['value'])) {
- $value = $properties['value'];
+ } elseif(isset($properties['defaultValue'])) {
+ $value = $properties['defaultValue'];
} else {
continue;
}