mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Handle feed failures. Closes #3521
This commit is contained in:
parent
3285aabb66
commit
3f070538c8
@ -106,7 +106,9 @@ class DashboardController extends Controller
|
||||
|
||||
$entries = null;
|
||||
if ($feed = $this->feed->latest()) {
|
||||
$entries = array_slice($feed->channel->item, 0, 5);
|
||||
if ($feed !== 1) {
|
||||
$entries = array_slice($feed->channel->item, 0, 5);
|
||||
}
|
||||
}
|
||||
|
||||
return View::make('dashboard.index')
|
||||
|
Loading…
x
Reference in New Issue
Block a user