Skip to content

Commit

Permalink
Fixed issue #102
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasKovacs committed Apr 23, 2016
1 parent 18d400c commit 8af1adb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xgp3.0.0/upload/application/controllers/adm/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,8 @@ private function saveBuildings($type = 1)
// REMOVE LAST COMMA
//$query_string = substr_replace($query_string, '', -1);
// QUERY END
$query_string .= " `planet_field_current` = '" . $total_fields . "' ";
$query_string .= " `planet_field_current` = '" . $total_fields . "', ";
$query_string .= " `planet_field_max` = IF(`planet_type` = 3, 1 + `building_mondbasis` * " . FIELDS_BY_MOONBASIS_LEVEL . ", `planet_field_max`) ";
$query_string .= " WHERE `building_planet_id` = '" . parent::$db->escapeValue($id_get) . "'
AND `planet_id` = '" . parent::$db->escapeValue($id_get) . "';";

Expand Down

0 comments on commit 8af1adb

Please sign in to comment.