skiedude / evestructures

An ESI/SSO backed website enabling Eve Online Corporations to view and manage all their owned Structures in New Eden
https://structures.eveskillboard.com
MIT License
22 stars 12 forks source link

php7.4 fixes #24

Closed jamiew0w closed 4 years ago

jamiew0w commented 4 years ago

https://www.php.net/manual/en/migration74.incompatible.php

Serveral fixes from this:

$alert = $alert[0];
$warning = $warning[0];
$success = $success[0];

To this:

$alert = isset($alert[0]) ? $alert[0] : null;
$warning = isset($warning[0]) ? $warning[0] : null;
$success = isset($success[0]) ? $success[0] : null;