Skip to content

Commit a29c7f1

Browse files
committed
php notice fix
1 parent 4752c23 commit a29c7f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/directadmin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function deactivate_directadmin($ipAddress)
320320
if (!isset($license)) {
321321
$license = get_directadmin_license_by_ip($ipAddress);
322322
}
323-
if ($license['active'] == 'Y') {
323+
if (is_array($license) && $license['active'] == 'Y') {
324324
$url = 'https://www.directadmin.com/cgi-bin/deletelicense';
325325
$post = [
326326
'uid' => DIRECTADMIN_USERNAME,

0 commit comments

Comments
 (0)