| @@ 104-106 (lines=3) @@ | ||
| 101 | // $user = $global_data['user']; |
|
| 102 | // $planetrow = $global_data['planet']; |
|
| 103 | ||
| 104 | if($planetrow['planet_type'] != PT_PLANET) { |
|
| 105 | throw new exception(classLocale::$lang['ov_capital_err_not_a_planet'], ERR_ERROR); |
|
| 106 | } |
|
| 107 | ||
| 108 | if($planetrow['id'] == $user['id_planet']) { |
|
| 109 | throw new exception(classLocale::$lang['ov_capital_err_capital_already'], ERR_ERROR); |
|
| @@ 1091-1093 (lines=3) @@ | ||
| 1088 | } |
|
| 1089 | ||
| 1090 | try { |
|
| 1091 | if ($planetrow['planet_type'] != PT_PLANET) { |
|
| 1092 | throw new exception(classLocale::$lang['ov_core_err_not_a_planet'], ERR_ERROR); |
|
| 1093 | } |
|
| 1094 | ||
| 1095 | if ($planetrow['density_index'] == ($new_density_index = sys_get_param_id('density_type'))) { |
|
| 1096 | throw new exception(classLocale::$lang['ov_core_err_same_density'], ERR_WARNING); |
|