summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib/Controller/DashboardController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dashboard/lib/Controller/DashboardController.php')
-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':