Skip to content

Commit d9da8e4

Browse files
author
Oliver Payne
committed
ensure that the list of ips is unique
1 parent b28aac5 commit d9da8e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/add/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335

336336
// List IP addresses
337337
exec (VESTA_CMD."v-list-user-ips ".$user." json", $output, $return_var);
338-
$ips = json_decode(implode('', $output), true);
338+
$ips = array_unique(json_decode(implode('', $output), true));
339339
unset($output);
340340

341341
// List web stat engines

0 commit comments

Comments
 (0)