Skip to content

Commit

Permalink
Fixes #433
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Jul 15, 2014
1 parent a2e83f3 commit 54cf043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/backend/widgets/ReportContainer.php
Expand Up @@ -236,7 +236,9 @@ protected function loadWidgets()

protected function getWidgetsFromUserPreferences()
{
return UserPreferences::forUser()->get($this->getUserPreferencesKey(), $this->defaultWidgets);
$widgets = UserPreferences::forUser()->get($this->getUserPreferencesKey(), $this->defaultWidgets);
if (!is_array($widgets)) return [];
return $widgets;
}

protected function setWidgetsToUserPreferences($widgets)
Expand Down

0 comments on commit 54cf043

Please sign in to comment.