forked from halo-battle/game
Fix for PHP 7.2 compatibility
This commit is contained in:
parent
162dd444bd
commit
2be9fcd5c3
12 changed files with 21 additions and 15 deletions
|
|
@ -64,7 +64,7 @@ if (isset($SESS) && !(empty($SESS->values["connected"]) && empty($SESS->values['
|
|||
//On gère les demande de changement de planète
|
||||
if (isset($_POST["planete"]))
|
||||
{
|
||||
if (ereg("A", $_POST["planete"]))
|
||||
if (preg_match("#A#", $_POST["planete"]))
|
||||
{
|
||||
$idAsteroideTest = intval(substr(gpc("planete", "post"), 1));
|
||||
if ($bdd->unique_query("SELECT id FROM $table_alliances WHERE id = $idAsteroideTest;") && $bdd->unique_query("SELECT id FROM $table_user WHERE id = $id_user AND id_alliance = $idAsteroideTest;"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue