Skip to content

Commit 2783522

Browse files
Minor - PHP notice fixes
1 parent 52a5e26 commit 2783522

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function getActivate(GenericEvent $event)
8787
$sock->set_login('admin', $hash);
8888
$sock->query('/CMD_API_SHOW_RESELLER_IPS');
8989
$result = $sock->fetch_parsed_body();
90-
if (!in_array($siteIp, $result['list'])) {
90+
if (!empty($result['list']) && !in_array($siteIp, $result['list'])) {
9191
$siteIp = $result['list'][0];
9292
}
9393
$apiOptions = [

0 commit comments

Comments
 (0)