summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-19 21:50:40 +0200
committerJulien Veyssier <eneiluj@posteo.net>2020-08-20 12:27:57 +0200
commit8a3016565f55c123a8259c6a982cc9425b5036b8 (patch)
treedba45cb1a9ec154d5b1823f13b07006dabe1f0a6 /apps/dashboard/lib
parent077e2fec74d19bec23af6e95c082d3802a0c0a91 (diff)
downloadnextcloud-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.php4
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':