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