summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-28 12:29:02 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-28 12:37:08 +0200
commit1602e82363a8e33a982b6b258e0184d9f2afc839 (patch)
tree0527b97f686efd9cf339c42e6604e2170ede141c /apps/updatenotification/lib
parentf219ed2e99a759ddc41ea41e8d8b187aa2d4b002 (diff)
downloadnextcloud-server-1602e82363a8e33a982b6b258e0184d9f2afc839.tar.gz
nextcloud-server-1602e82363a8e33a982b6b258e0184d9f2afc839.zip
UpdateState is empty if no update is available
This leads to log messages such as "Undefined index: updaterEnabled at /media/psf/nextcloud/apps/updatenotification/lib/Controller/AdminController.php#116". Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/updatenotification/lib')
-rw-r--r--apps/updatenotification/lib/Controller/AdminController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/updatenotification/lib/Controller/AdminController.php b/apps/updatenotification/lib/Controller/AdminController.php
index 56f41ebf3ee..0a867f1267c 100644
--- a/apps/updatenotification/lib/Controller/AdminController.php
+++ b/apps/updatenotification/lib/Controller/AdminController.php
@@ -113,7 +113,7 @@ class AdminController extends Controller implements ISettings {
'channels' => $channels,
'newVersionString' => (empty($updateState['updateVersion'])) ? '' : $updateState['updateVersion'],
'downloadLink' => (empty($updateState['downloadLink'])) ? '' : $updateState['downloadLink'],
- 'updaterEnabled' => $updateState['updaterEnabled'],
+ 'updaterEnabled' => (empty($updateState['updaterEnabled'])) ? false : $updateState['updaterEnabled'],
'notify_groups' => implode('|', $notifyGroups),
];