From d66a4e951ec8e36e9c06abb3b9b929dc5d7e56ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Mon, 1 Sep 2014 15:42:59 +0200 Subject: [PATCH] fixed if construct --- application/core/ErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/ErrorHandler.php b/application/core/ErrorHandler.php index de5f8eda..22e41b70 100644 --- a/application/core/ErrorHandler.php +++ b/application/core/ErrorHandler.php @@ -430,8 +430,8 @@ class ErrorHandler { $report['ServerLogin'] = $server->login; } - if ($settingManager = $this->maniaControl->getSettingManager() && $updateManager = $this->maniaControl->getUpdateManager()) { - $report['UpdateChannel'] = $settingManager->getSettingValue($updateManager, UpdateManager::SETTING_UPDATECHECK_CHANNEL); + if (($settingManager = $this->maniaControl->getSettingManager()) && ($updateManager = $this->maniaControl->getUpdateManager())) { + $report['UpdateChannel'] = $settingManager->getSettingValue($updateManager, $updateManager::SETTING_UPDATECHECK_CHANNEL); $report['ManiaControlVersion'] = ManiaControl::VERSION . ' #' . $updateManager->getBuildDate(); } else { $report['ManiaControlVersion'] = ManiaControl::VERSION;