Nightfirecat / RealmEye-API

An easy way to access your character data via RealmEye.
MIT License
13 stars 7 forks source link

PHP Notices caused by null equipment hotfix code #33

Closed Nightfirecat closed 7 years ago

Nightfirecat commented 7 years ago

https://github.com/Nightfirecat/RealmEye-API/blob/784fe9d7cbed902357f0d1f41343134f0319021d/index.php#L209

The above line causes the following notices:

Only variables should be passed by reference in /var/www/html/realmeye-api/index.php on line 209 Trying to get property of non-object in /var/www/html/realmeye-api/index.php on line 209

I suspect that this has to do with the use of end(explode(...)) and should probably be fixed to expand this line into something that is both more readable and better-organized.