Aleksander Machniak
2016-01-16 ed1d212ae2daea5e4bd043417610177093e99f19
program/lib/Roundcube/rcube_spellcheck_enchant.php
@@ -1,6 +1,6 @@
<?php
/*
/**
 +-----------------------------------------------------------------------+
 | This file is part of the Roundcube Webmail client                     |
 |                                                                       |
@@ -40,9 +40,10 @@
        $this->init();
        $langs = array();
        $dicts = enchant_broker_list_dicts($this->enchant_broker);
        foreach ($dicts as $dict) {
            $langs[] = preg_replace('/-.*$/', '', $dict['lang_tag']);
        if ($dicts = enchant_broker_list_dicts($this->enchant_broker)) {
            foreach ($dicts as $dict) {
                $langs[] = preg_replace('/-.*$/', '', $dict['lang_tag']);
            }
        }
        return array_unique($langs);
@@ -177,6 +178,4 @@
        return $result;
    }
}