adjust empty array check

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier 2022-09-15 18:24:43 +02:00
parent 9ba26ee326
commit da74da8a9c
No known key found for this signature in database
GPG key ID: 4141FEE162030638

View file

@ -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));
}