diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-08-19 21:50:40 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2020-08-20 12:27:57 +0200 |
commit | 8a3016565f55c123a8259c6a982cc9425b5036b8 (patch) | |
tree | dba45cb1a9ec154d5b1823f13b07006dabe1f0a6 /apps/dashboard/lib | |
parent | 077e2fec74d19bec23af6e95c082d3802a0c0a91 (diff) | |
download | nextcloud-server-8a3016565f55c123a8259c6a982cc9425b5036b8.tar.gz nextcloud-server-8a3016565f55c123a8259c6a982cc9425b5036b8.zip |
Small fixes to cleanup code
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/lib')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 8f845ca9b6a..a272c9deb14 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -134,8 +134,8 @@ class DashboardController extends Controller { /** * @NoAdminRequired */ - public function setBackground(string $type, string $value): JSONResponse { - $currentVersion = (int)$this->config->getUserValue($this->userId, 'dashboard', 'backgroundVersion', 0); + public function setBackground(string $type = 'default', string $value = ''): JSONResponse { + $currentVersion = (int)$this->config->getUserValue($this->userId, 'dashboard', 'backgroundVersion', '0'); try { switch ($type) { case 'shipped': |