diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-11-02 20:00:39 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-11-02 20:00:39 +0100 |
commit | 64cb70284798f6f910e8545c738b8b82027e6bc7 (patch) | |
tree | ef7e14269b9e49e93e1e2255febc4d0a69bffbf1 | |
parent | 052a6a4d653ee061f3a9ff8abdb51102d5da44ce (diff) |
Remove duplicate languages on spellchecker langs list (#1489395)
-rw-r--r-- | program/lib/Roundcube/rcube_spellchecker.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_spellchecker.php b/program/lib/Roundcube/rcube_spellchecker.php index d087d2584..3182ff378 100644 --- a/program/lib/Roundcube/rcube_spellchecker.php +++ b/program/lib/Roundcube/rcube_spellchecker.php @@ -104,6 +104,9 @@ class rcube_spellchecker } } + // remove possible duplicates (#1489395) + $languages = array_unique($languages); + asort($languages); return $languages; |