added todo
removed unnecessary return
This commit is contained in:
parent
fd0d84dfb0
commit
142f84afd2
@ -404,9 +404,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
|
||||
* @param bool
|
||||
*/
|
||||
private function applyNewScriptSettings(array $newSettings, Player $player) {
|
||||
if (!$newSettings) {
|
||||
return true;
|
||||
}
|
||||
if (!$newSettings) return true;
|
||||
|
||||
try {
|
||||
$this->maniaControl->client->setModeScriptSettings($newSettings);
|
||||
@ -449,8 +447,6 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
|
||||
$statement->execute();
|
||||
if ($statement->error) {
|
||||
trigger_error($statement->error);
|
||||
$statement->close();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Trigger own callback
|
||||
|
@ -342,6 +342,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
|
||||
}
|
||||
|
||||
// Notifications
|
||||
//TODO: clean up those comments
|
||||
//$settingsCount = count($newSettings);
|
||||
$settingIndex = 0;
|
||||
//$title = $this->maniaControl->authenticationManager->getAuthLevelName($player->authLevel);
|
||||
|
Loading…
Reference in New Issue
Block a user