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
|
|
@ -46,7 +46,10 @@ $page = 'flotte1';
|
|||
}
|
||||
|
||||
//Calcul du nombre de slot disponible et vérouillage de l'envoie si besoin
|
||||
$nbFlottes = count($flottes);
|
||||
if ($flottes)
|
||||
$nbFlottes = count($flottes);
|
||||
else
|
||||
$nbFlottes = 0;
|
||||
if (SURFACE == "asteroide")
|
||||
{
|
||||
if ($planete->batiments[2] == 1)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ if (isset($_POST['planete']))
|
|||
erreur('Vous n\'avez indiqué aucun nom de planète.', "red", '?p=rename');
|
||||
elseif (limite($nouvNom, 18))
|
||||
erreur('Le nom de votre planète est trop long.', "red", '?p=rename');
|
||||
elseif (ereg('staf', strtolower($nouvNom)) && $SESS->level < 4)
|
||||
elseif (preg_match('#staf#', strtolower($nouvNom)) && $SESS->level < 4)
|
||||
erreur('Vous devez faire parti du staff pour afficher le nom "staff" dans le nom de votre planète !', "red", '?p=rename');
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue