DatabaseConverter / improvement mapmanager

This commit is contained in:
kremsy 2014-02-02 18:54:50 +01:00 committed by Steffen Schröder
parent 35b5e2ac47
commit 0c1e479711
2 changed files with 7 additions and 4 deletions

View File

@ -126,7 +126,10 @@ class MapManager implements CallbackListener {
) VALUES ( ) VALUES (
?, ?, ?, ?, ?, ? ?, ?, ?, ?, ?, ?
) ON DUPLICATE KEY UPDATE ) ON DUPLICATE KEY UPDATE
`index` = LAST_INSERT_ID(`index`);"; `index` = LAST_INSERT_ID(`index`),
`fileName` = LAST_INSERT_ID(`fileName`),
`environment` = LAST_INSERT_ID(`environment`),
`mapType` = LAST_INSERT_ID(`mapType`);";
$mapStatement = $mysqli->prepare($mapQuery); $mapStatement = $mysqli->prepare($mapQuery);
if ($mysqli->error) { if ($mysqli->error) {
trigger_error($mysqli->error); trigger_error($mysqli->error);

View File

@ -207,7 +207,7 @@ class StatisticCollector implements CallbackListener {
* *
* @param array $callback * @param array $callback
*/ */
public function handleCallbacks(array $callback) { public function handleCallbacks(array $callback) { //TODO survivals
//Check if Stat Collecting is enabled //Check if Stat Collecting is enabled
if (!$this->maniaControl->settingManager->getSetting($this, self::SETTING_COLLECT_STATS_ENABLED)) { if (!$this->maniaControl->settingManager->getSetting($this, self::SETTING_COLLECT_STATS_ENABLED)) {
return; return;