fontsets are not defined in the config.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10807
7612ce4b-ef26-0410-bec9-
ea0150e637f0
*************************************
Version 1.5.2 CVS
- -
+ - Fix warning about array required in array_keys for display options when
+ no fontset is defined.
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------
*/
$fontset_values = array();
- foreach (array_keys($fontsets) as $fontset_key) {
- $fontset_list[$fontset_key]=$fontset_key;
+ $fontset_list = array();
+
+ if (!empty($fontsets) && is_array($fontsets)) {
+
+ foreach (array_keys($fontsets) as $fontset_key) {
+ $fontset_list[$fontset_key]=$fontset_key;
+ }
+ ksort($fontset_list);
}
- ksort($fontset_list);
if (count($fontset_list) > 1) {
$fontset_list = array_merge(array('' => _("Default font style")), $fontset_list);
}
-?>
\ No newline at end of file
+?>