mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 23:27:32 +02:00
fix(twitch): Invalid argument supplied for foreach() at bridges/TwitchBridge.php line 115 (#3630)
This commit is contained in:
@@ -112,7 +112,9 @@ EOD;
|
||||
if (!is_null($video->game)) {
|
||||
$item['categories'][] = $video->game->displayName;
|
||||
}
|
||||
foreach ($video->contentTags as $tag) {
|
||||
|
||||
$contentTags = $video->contentTags ?? [];
|
||||
foreach ($contentTags as $tag) {
|
||||
if (!$tag->isLanguageTag) {
|
||||
$item['categories'][] = $tag->localizedName;
|
||||
}
|
||||
|
Reference in New Issue
Block a user