From 995c820e44d79f828381d2d124bde5470f04a082 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 2 Feb 2014 19:16:16 +0100 Subject: [PATCH] bugfix --- application/core/Maps/MapManager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 53e7a6d6..4fae5d8d 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -127,9 +127,10 @@ class MapManager implements CallbackListener { ?, ?, ?, ?, ?, ? ) ON DUPLICATE KEY UPDATE `index` = LAST_INSERT_ID(`index`), - `fileName` = LAST_INSERT_ID(`fileName`), - `environment` = LAST_INSERT_ID(`environment`), - `mapType` = LAST_INSERT_ID(`mapType`);"; + `fileName` = VALUES(`fileName`), + `environment` = VALUES(`environment`), + `mapType` = VALUES(`mapType`);"; + $mapStatement = $mysqli->prepare($mapQuery); if ($mysqli->error) { trigger_error($mysqli->error);