iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 95 forks source link

Warning when creating Natars account #384

Closed velhbxtyrj closed 6 years ago

velhbxtyrj commented 6 years ago
  1. expected behaviour: Creating a Natars account without displaying warnings
  2. incorrect behaviour: When you create a Natars account, you see a lot of warnings. The account is created correctly.
  3. the operating system & version: windows 10
  4. PHP version on the server: 7.0
  5. MySQL / MariaDB version on the server: 10.1.25 MariaDB

Displays 1 such warning Warning: Illegal string offset 'capital' in GameEngine\Database.php on line 1681

Displays 25 of such warning Warning: Illegal string offset 'owner' in GameEngine\Database.php on line 1681

https://github.com/Shadowss/TravianZ/blob/cb60226297c0e01b36afac3da85de9caca92a18a/GameEngine/Database.php#L1681

Displays 1 such warning Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in GameEngine\Database.php on line 1738

https://github.com/Shadowss/TravianZ/blob/cb60226297c0e01b36afac3da85de9caca92a18a/GameEngine/Database.php#L1738

martinambrus commented 6 years ago

Good catch :) Fixed.

velhbxtyrj commented 6 years ago

Works great. I close it.