Skip to content

Commit 8af1adb

Browse files
committed
Fixed issue #102
1 parent 18d400c commit 8af1adb

File tree

1 file changed

+2
-1
lines changed
  • src/xgp3.0.0/upload/application/controllers/adm

1 file changed

+2
-1
lines changed

src/xgp3.0.0/upload/application/controllers/adm/users.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,8 @@ private function saveBuildings($type = 1)
10341034
// REMOVE LAST COMMA
10351035
//$query_string = substr_replace($query_string, '', -1);
10361036
// QUERY END
1037-
$query_string .= " `planet_field_current` = '" . $total_fields . "' ";
1037+
$query_string .= " `planet_field_current` = '" . $total_fields . "', ";
1038+
$query_string .= " `planet_field_max` = IF(`planet_type` = 3, 1 + `building_mondbasis` * " . FIELDS_BY_MOONBASIS_LEVEL . ", `planet_field_max`) ";
10381039
$query_string .= " WHERE `building_planet_id` = '" . parent::$db->escapeValue($id_get) . "'
10391040
AND `planet_id` = '" . parent::$db->escapeValue($id_get) . "';";
10401041

0 commit comments

Comments
 (0)