We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d0d53 commit 57af3f1Copy full SHA for 57af3f1
1 file changed
src/Plugin.php
@@ -71,6 +71,7 @@ public static function getIps(\xmlapi $whm)
71
'shared' => []
72
];
73
$accts = json_decode($whm->listips(), true);
74
+ if (isset($accts['result'])) {
75
foreach (array_values($accts['result']) as $ipData) {
76
if ($ipData['active'] == 1) {
77
if ($ipData['mainaddr'] == '1') {
@@ -79,6 +80,7 @@ public static function getIps(\xmlapi $whm)
79
80
$ips[$ipData['dedicated'] == 0 ? 'shared' : ($ipData['used'] == 1 ? 'used' : 'free')][] = $ipData['ip'];
81
}
82
83
+ }
84
return $ips;
85
86
0 commit comments