Updated alliances page, fixed SQL injections (hoegarden)
Fided minor bugs Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
8f0f7a4d46
commit
be8c6a6629
14 changed files with 1317 additions and 1215 deletions
2
reg.php
2
reg.php
|
|
@ -48,7 +48,7 @@ if (!empty($_POST) && isset($_POST['username']) && isset($_POST['planet_name'])
|
|||
if (true || count($session->getMessages(false)) === 0) {
|
||||
$user = Legacies_Empire_Model_User::register($_POST['username'], $_POST['email'], $_POST['password']);
|
||||
|
||||
$user->getHomePlanet()->setName($_POST['planet_name']);
|
||||
$user->getHomePlanet()->setName($_POST['planet_name'])->save();
|
||||
}
|
||||
|
||||
if ($user !== null && $user->getId()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue