Skip to content

Commit 769bf05

Browse files
author
Till Brehm
committed
Merge branch '6585-php-warning-undefined-array-key-ip-in-tmp-update_runner-sh-mqxkxglcyo-install-lib' into 'develop'
Resolve "PHP Warning: Undefined array key "ip" in /tmp/update_runner.sh.MQXkxglcyo/install/lib/installer_base.lib.php on line 2995" Closes #1813 and #6585 See merge request ispconfig/ispconfig3!1813
2 parents 2315b81 + 7c2bb88 commit 769bf05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,15 +2988,15 @@ public function make_ispconfig_ssl_cert() {
29882988
$dnsa=dns_get_record($hostname, DNS_A);
29892989
if($dnsa) {
29902990
foreach ($dnsa as $rec) {
2991-
$dns_ips[] = $rec['ip'];
2991+
if(is_array($rec) && isset($rec['ip'])) $dns_ips[] = $rec['ip'];
29922992
}
29932993
}
29942994
}
29952995
if (checkdnsrr($hostname, 'AAAA')) {
29962996
$dnsaaaa=dns_get_record($hostname, DNS_AAAA);
29972997
if($dnsaaaa) {
29982998
foreach ($dnsaaaa as $rec) {
2999-
$dns_ips[] = $rec['ip'];
2999+
if(is_array($rec) && isset($rec['ip'])) $dns_ips[] = $rec['ip'];
30003000
}
30013001
}
30023002
}

0 commit comments

Comments
 (0)