Преглед изворни кода

ensure that the list of ips is unique

Oliver Payne пре 11 година
родитељ
комит
d9da8e4d6f
1 измењених фајлова са 1 додато и 1 уклоњено
  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