refactored phpdoc, return/break statements, uses

This commit is contained in:
Steffen Schröder
2014-04-27 15:12:09 +02:00
parent b75946e048
commit acf9053117
19 changed files with 48 additions and 53 deletions

View File

@ -359,9 +359,8 @@ class LocalRecordsPlugin implements CallbackListener, CommandListener, TimerList
}
$mysqli = $this->maniaControl->database->mysqli;
$removeRecord = $records[$recordId-1];
$query = "DELETE FROM `" . self::TABLE_RECORDS . "` WHERE `mapIndex` = ".$currentMap->index." AND `playerIndex` = ".$player->index."";
$result = $mysqli->query($query);
$mysqli->query($query);
if ($mysqli->error) {
trigger_error($mysqli->error);
return null;