summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-01-03 02:39:52 +0100
committerBenny Baumann <BenBE@geshi.org>2015-01-03 02:39:52 +0100
commitba8c4e2885571be2473b75f9d479dc57adea7ed8 (patch)
tree2de005e31d51a505b9f7c3c4f6bbb79c57f9bb9c
parent2441652cbe8494e29a5c6fe116eeff63b7ffe999 (diff)
downloadcacert-devel-ba8c4e2885571be2473b75f9d479dc57adea7ed8.tar.gz
cacert-devel-ba8c4e2885571be2473b75f9d479dc57adea7ed8.tar.xz
cacert-devel-ba8c4e2885571be2473b75f9d479dc57adea7ed8.zip
bug 1354: Remove duplicates from the returned array
-rw-r--r--www/gpg.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/www/gpg.php b/www/gpg.php
index 4ad9497..f9b3a71 100644
--- a/www/gpg.php
+++ b/www/gpg.php
@@ -424,6 +424,7 @@ function expandVariants($name) {
}
$variants = array_filter($variants, function($a) { return false === strstr($a, "&"); } );
+ $variants = array_unique($variants);
return $variants;
}