diff --git a/bridges/TwitchBridge.php b/bridges/TwitchBridge.php index 8976174a..146fed3d 100644 --- a/bridges/TwitchBridge.php +++ b/bridges/TwitchBridge.php @@ -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; }