summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-18 11:57:01 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-19 17:07:28 +0200
commit135ceb4a9de2238c1678577b5f3d34c6a9f66a8b (patch)
tree8e7ad539861510ebd240d8da29ffb226d3ad5f45 /apps/dashboard/lib
parentd02a92e870448c20d22d3ed1939c8d2e3edc6542 (diff)
downloadnextcloud-server-135ceb4a9de2238c1678577b5f3d34c6a9f66a8b.tar.gz
nextcloud-server-135ceb4a9de2238c1678577b5f3d34c6a9f66a8b.zip
Fix late night errors
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/lib')
-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);