Closed kek91 closed 8 years ago
Fixes issue #1
In some cases where the $ip variable hasn't been initialized, iplocations will give a notice exception because is_null() only checks that the variable is null, but isset() checks that it has been initialized and is not null.
Thanks for this! I'm not a PHP native, and somehow this never came up in testing.
Happy I could be of assistance! Thanks for the mention in changelog.md :)
Fixes issue #1
In some cases where the $ip variable hasn't been initialized, iplocations will give a notice exception because is_null() only checks that the variable is null, but isset() checks that it has been initialized and is not null.