Bläddra i källkod

Merge pull request #244 from olipayne/master

ensure that the list of ips is unique
Serghey Rodin 11 år sedan
förälder
incheckning
8e505ba713
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      web/add/web/index.php

+ 1 - 1
web/add/web/index.php

@@ -335,7 +335,7 @@ $v_ftp_email = $panel[$user]['CONTACT'];
 
 // List IP addresses
 exec (VESTA_CMD."v-list-user-ips ".$user." json", $output, $return_var);
-$ips = json_decode(implode('', $output), true);
+$ips = array_unique(json_decode(implode('', $output), true));
 unset($output);
 
 // List web stat engines