Fix for PHP 7.2 compatibility

This commit is contained in:
nemunaire 2020-11-15 17:20:47 +01:00
commit 2be9fcd5c3
12 changed files with 21 additions and 15 deletions

View file

@ -60,7 +60,7 @@ class Asteroide extends Surface
parent::User($SESS->values['id']); //On utilise le numéro d'utilisateur enregistré en session
$this->galaxie = $plan["galaxie"];
$this->ss = $plan["ss"];
$this->points_alliance = $plan["points_alliance"];
$this->points_alliance = @$plan["points_alliance"];
$this->nom_asteroide = $plan["nom_asteroide"];
$this->image = $this->image_asteroide = $plan["image_asteroide"];
$this->debris_met = $plan["debris_met"];

View file

@ -80,7 +80,7 @@ class Planete extends Surface
$this->nom_planete = $plan["nom_planete"];
$this->image = $plan["image"];
$this->cases = $plan["cases"];
$this->energieCentrale = $plan["energieCentrale"];
$this->energieCentrale = @$plan["energieCentrale"];
$this->debris_met = $plan["debris_met"];
$this->debris_cri = $plan["debris_cri"];
$this->metal = $plan["metal"];

View file

@ -56,7 +56,7 @@ class User{
$this->pseudo = $user["pseudo"];
$this->auth_level = $user["auth_level"];
$this->race = $user["race"];
$this->options = intval($user["options"]);
$this->options = @intval($user["options"]);
$this->mv = $user["mv"];
$this->id_alliance = $user["id_alliance"];
$this->id_grade_alliance = $user["id_grade_alliance"];