mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 13:50:23 +02:00
fix: various small notice fixes (#3474)
* fix(patreon): php notice * fix(pepperbridge): php notice * fix(ebay): php notice * fix(tiktok): php notice * fix(yandex): fix notice * fix(justwatch): notice * lint
This commit is contained in:
@@ -316,7 +316,9 @@ abstract class BridgeAbstract implements BridgeInterface
|
||||
}
|
||||
$needle = $this->inputs[$this->queriedContext][$input]['value'];
|
||||
foreach (static::PARAMETERS[$context][$input]['values'] as $first_level_key => $first_level_value) {
|
||||
if ($needle === (string)$first_level_value) {
|
||||
// todo: this cast emits error if it's an array
|
||||
$valueString = (string) $first_level_value;
|
||||
if ($needle === $valueString) {
|
||||
return $first_level_key;
|
||||
} elseif (is_array($first_level_value)) {
|
||||
foreach ($first_level_value as $second_level_key => $second_level_value) {
|
||||
|
Reference in New Issue
Block a user