From 6ac02d4aac5f623480ce39a362abb548f4ea1fa5 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 28 Sep 2016 12:33:57 +0200 Subject: [PATCH] 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". --- apps/updatenotification/controller/admincontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/updatenotification/controller/admincontroller.php b/apps/updatenotification/controller/admincontroller.php index 5eafb1449f..17c719f25d 100644 --- a/apps/updatenotification/controller/admincontroller.php +++ b/apps/updatenotification/controller/admincontroller.php @@ -108,7 +108,7 @@ class AdminController extends Controller { 'channels' => $channels, 'newVersionString' => (empty($updateState['updateVersion'])) ? '' : $updateState['updateVersion'], 'downloadLink' => (empty($updateState['downloadLink'])) ? '' : $updateState['downloadLink'], - 'updaterEnabled' => $updateState['updaterEnabled'], + 'updaterEnabled' => (empty($updateState['updaterEnabled'])) ? false : $updateState['updaterEnabled'], ]; return new TemplateResponse($this->appName, 'admin', $params, '');