fixed if construct

This commit is contained in:
Steffen Schröder 2014-09-01 15:42:59 +02:00
parent 0240c92d58
commit d66a4e951e

View File

@ -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;