mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
adjust empty array check
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
parent
9ba26ee326
commit
da74da8a9c
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue