mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 15:19:55 +03:00
fix(twitch): Invalid argument supplied for foreach() at bridges/TwitchBridge.php line 115 (#3630)
This commit is contained in:
parent
c5cbab1231
commit
3ac861a866
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue