OGSteam / ogspy

OGSpy collects data from a game to helps players to spy all the universe
https://forum.ogsteam.eu
GNU General Public License v2.0
10 stars 12 forks source link

Error espace personnel #311

Closed Hari-Seld0n closed 1 year ago

Hari-Seld0n commented 1 year ago

Dans le menu "Espace personnel" lorsque pas toutes les données sont importées :

Résultat Attendu Une rapide description de ce qui aurait du se produire TypeError thrown with message "Unsupported operand types: int & string"

Stacktrace:

3 TypeError in /data/www/ogspy/vendor/filp/whoops/src/Whoops/Run.php:468

2 Whoops\Run:handleError in /data/www/ogspy/views/home_empire.php:658

1 require_once in /data/www/ogspy/views/home.php:80

0 require_once in /data/www/ogspy/index.php:144

image

Capture d'écrans Une fois tout importé, la page s'affiche correctement : image

Versions:

machine62 commented 1 year ago

Pourra se regler la : https://github.com/OGSteam/ogspy/blob/fad825c04f4668246104257062bd3604f4f1da28/includes/user.php#L959

il faut ajouter valeur par defaut comme fait poour def / flotte ...