diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-09-15 19:24:43 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-09-15 19:24:43 +0300 |
commit | da74da8a9c5ace9b10bc9dbd60fad229d477b073 (patch) | |
tree | 559aa5d61059865a24e676a5f764810a1ab8dc51 /apps | |
parent | 9ba26ee326887428f3b2b61edfac4109305a3db2 (diff) |
adjust empty array checkdashboard-api-widgets
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardApiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php index f7a1d6961c2..1062cf1bdba 100644 --- a/apps/dashboard/lib/Controller/DashboardApiController.php +++ b/apps/dashboard/lib/Controller/DashboardApiController.php @@ -79,7 +79,7 @@ class DashboardApiController extends OCSController { $showWidgets = $widgets; $items = []; - if ($showWidgets === []) { + if (empty($showWidgets)) { $systemDefault = $this->config->getAppValue('dashboard', 'layout', 'recommendations,spreed,mail,calendar'); $showWidgets = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', $systemDefault)); } |