Bug fix blog
This commit is contained in:
@@ -168,6 +168,10 @@ QUERY;
|
|||||||
$podcast = app('db')->select(PodcastController::$BASE_SQL . ' AND `podcast`.`id` = :podcastId', ['podcastId' => $blogItem->podcast_id]);
|
$podcast = app('db')->select(PodcastController::$BASE_SQL . ' AND `podcast`.`id` = :podcastId', ['podcastId' => $blogItem->podcast_id]);
|
||||||
$podcast = count($podcast) ? $podcast[0] : null;
|
$podcast = count($podcast) ? $podcast[0] : null;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$podcast = null;
|
||||||
|
}
|
||||||
|
|
||||||
$result[] = new \Model\NewsItem($blogItem, $pictures, $podcast);
|
$result[] = new \Model\NewsItem($blogItem, $pictures, $podcast);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user