Skip to content

Commit 57af3f1

Browse files
committed
php8 fix
1 parent c1d0d53 commit 57af3f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Plugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static function getIps(\xmlapi $whm)
7171
'shared' => []
7272
];
7373
$accts = json_decode($whm->listips(), true);
74+
if (isset($accts['result'])) {
7475
foreach (array_values($accts['result']) as $ipData) {
7576
if ($ipData['active'] == 1) {
7677
if ($ipData['mainaddr'] == '1') {
@@ -79,6 +80,7 @@ public static function getIps(\xmlapi $whm)
7980
$ips[$ipData['dedicated'] == 0 ? 'shared' : ($ipData['used'] == 1 ? 'used' : 'free')][] = $ipData['ip'];
8081
}
8182
}
83+
}
8284
return $ips;
8385
}
8486

0 commit comments

Comments
 (0)