This commit is contained in:
kremsy 2014-01-13 18:24:03 +01:00 committed by Steffen Schröder
parent 1fca467f7d
commit 2a44665668

View File

@ -100,9 +100,9 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
trigger_error('Error occured: ' . $scriptSettings['faultString']);
return false;
}
$mysqli = $this->maniaControl->database->mysqli;
$query = "SELECT * FROM `" . self::TABLE_SCRIPT_SETTINGS . "`;";
$serverId = $this->maniaControl->server->index;
$query = "SELECT * FROM `" . self::TABLE_SCRIPT_SETTINGS . "` WHERE serverIndex = " . $serverId . ";";
$result = $mysqli->query($query);
if($mysqli->error) {
trigger_error($mysqli->error);