mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-16 21:58:21 +01:00
fix(jornaln): Array to string conversion at lib/BridgeAbstract.php li… (#3523)
* fix(jornaln): Array to string conversion at lib/BridgeAbstract.php line 320 * yup
This commit is contained in:
parent
c9a861e259
commit
6c0e186d3f
@ -52,7 +52,10 @@ class JornalNBridge extends BridgeAbstract
|
|||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return !is_null($this->getKey('feed')) ? self::NAME . ' | ' . $this->getKey('feed') : self::NAME;
|
if ($this->getKey('feed')) {
|
||||||
|
return self::NAME . ' | ' . $this->getKey('feed');
|
||||||
|
}
|
||||||
|
return self::NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURI()
|
public function getURI()
|
||||||
|
@ -314,11 +314,10 @@ abstract class BridgeAbstract implements BridgeInterface
|
|||||||
if (!isset($context)) {
|
if (!isset($context)) {
|
||||||
$context = $this->queriedContext;
|
$context = $this->queriedContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
$needle = $this->inputs[$this->queriedContext][$input]['value'];
|
$needle = $this->inputs[$this->queriedContext][$input]['value'];
|
||||||
foreach (static::PARAMETERS[$context][$input]['values'] as $first_level_key => $first_level_value) {
|
foreach (static::PARAMETERS[$context][$input]['values'] as $first_level_key => $first_level_value) {
|
||||||
// todo: this cast emits error if it's an array
|
if (!is_array($first_level_value) && $needle === (string)$first_level_value) {
|
||||||
$valueString = (string) $first_level_value;
|
|
||||||
if ($needle === $valueString) {
|
|
||||||
return $first_level_key;
|
return $first_level_key;
|
||||||
} elseif (is_array($first_level_value)) {
|
} elseif (is_array($first_level_value)) {
|
||||||
foreach ($first_level_value as $second_level_key => $second_level_value) {
|
foreach ($first_level_value as $second_level_key => $second_level_value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user