jsmitty12 / phpWhois

phpWhois general repository
GNU General Public License v2.0
56 stars 20 forks source link

Check array key, which is not always existing (in de_handler) #39

Closed stollr closed 5 years ago

stollr commented 5 years ago

If a domain is in status 'connect' the array key changed is not set in $r['regrinfo']['domain']. This triggers the notice Undefined index: changed in line 71 of file src/whois.de.php.

To fix this issue I have added a check via isset.

stollr commented 5 years ago

Here's a screenshot showing the array structure on a domain that is in connection phase: screenshot_20190218_160846

jsmitty12 commented 5 years ago

Thanks for this fix!