summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib/Service/BackgroundService.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dashboard/lib/Service/BackgroundService.php')
-rw-r--r--apps/dashboard/lib/Service/BackgroundService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Service/BackgroundService.php b/apps/dashboard/lib/Service/BackgroundService.php
index 2b59bef65d9..30e9d9fe3cb 100644
--- a/apps/dashboard/lib/Service/BackgroundService.php
+++ b/apps/dashboard/lib/Service/BackgroundService.php
@@ -107,7 +107,7 @@ class BackgroundService {
}
public function setShippedBackground($fileName) {
- if (!in_array($fileName, self::SHIPPED_BACKGROUNDS)) {
+ if (!array_key_exists($fileName, self::SHIPPED_BACKGROUNDS)) {
throw new \InvalidArgumentException('The given file name is invalid');
}
$this->config->setUserValue($this->userId, 'dashboard', 'background', $fileName);