diff options
Diffstat (limited to 'apps/updatenotification')
-rw-r--r-- | apps/updatenotification/lib/Notification/BackgroundJob.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php index c3dd748116c..9155b9d2556 100644 --- a/apps/updatenotification/lib/Notification/BackgroundJob.php +++ b/apps/updatenotification/lib/Notification/BackgroundJob.php @@ -98,11 +98,13 @@ class BackgroundJob extends TimedJob { if (in_array($errors, $this->connectionNotifications, true)) { $this->sendErrorNotifications($errors); } - } else if (isset($status['version'])) { + } else if (is_array($status)) { $this->config->setAppValue('updatenotification', 'update_check_errors', 0); $this->clearErrorNotifications(); - $this->createNotifications('core', $status['version'], $status['versionstring']); + if (isset($status['version'])) { + $this->createNotifications('core', $status['version'], $status['versionstring']); + } } } |