PHPDoc improvements

Replaced deprecated method call
This commit is contained in:
Steffen Schröder
2014-05-20 14:59:17 +02:00
parent 7bcd42d927
commit 6ca5decdb4
13 changed files with 27 additions and 22 deletions

View File

@ -351,9 +351,8 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
return;
}
$oldSetting = $this->maniaControl->settingManager->getSettingByIndex($settingIndex);
if (!isset($oldSetting)) {
$oldSetting = $this->maniaControl->settingManager->getSettingObjectByIndex($settingIndex);
if (!$oldSetting) {
var_dump('no setting ' . $settingIndex);
return;
}

View File

@ -123,7 +123,11 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
return true;
}
$this->maniaControl->client->setServerOptions($serverSettings);
try {
$this->maniaControl->client->setServerOptions($serverSettings);
} catch (ServerOptionsException $exception) {
$this->maniaControl->chat->sendExceptionToAdmins($exception);
}
return true;
}