Better check

This commit is contained in:
James Brooks
2019-04-13 10:15:11 +01:00
parent 3f070538c8
commit adea4b269b

View File

@@ -106,7 +106,7 @@ class DashboardController extends Controller
$entries = null;
if ($feed = $this->feed->latest()) {
if ($feed !== 1) {
if (is_object($feed)) {
$entries = array_slice($feed->channel->item, 0, 5);
}
}