Commit c5e2b92c authored by Fabian 'xx4h' Melters's avatar Fabian 'xx4h' Melters

Check if dns_entry does exist at all before

checking its first entry
parent b07f3aa2
......@@ -25,7 +25,7 @@ try {
msg("Trying to find :".implode('.', $domain_array));
$dns_entry = $client->dns_txt_get($session_id, array('name' => "_acme-challenge.".$certbot_domain."."));
if ($dns_entry[0]) {
if ($dns_entry && $dns_entry[0]) {
msg("Entry already existing: ".print_r($dns_entry, true).", This does not work correctly, please remove it.");
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment