Bug fix blog

This commit is contained in:
2019-07-05 23:55:37 +02:00
parent 2602532d34
commit 138648d715

View File

@@ -168,6 +168,10 @@ QUERY;
$podcast = app('db')->select(PodcastController::$BASE_SQL . ' AND `podcast`.`id` = :podcastId', ['podcastId' => $blogItem->podcast_id]);
$podcast = count($podcast) ? $podcast[0] : null;
}
else
{
$podcast = null;
}
$result[] = new \Model\NewsItem($blogItem, $pictures, $podcast);
}