From 77eaf8e7f1c8fed12e408483c1c78651dc403824 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Feb 2012 09:22:42 +0000 Subject: [PATCH] dont show more lines in multiselectbox as we have values --- preferences/inc/class.uisettings.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences/inc/class.uisettings.inc.php b/preferences/inc/class.uisettings.inc.php index 7c14dde6d4..2ea671ebd8 100755 --- a/preferences/inc/class.uisettings.inc.php +++ b/preferences/inc/class.uisettings.inc.php @@ -556,7 +556,7 @@ class uisettings { if (!is_array($default)) $default = explode(',',$default); $select = html::input_hidden($GLOBALS['type'].'['.$name.']','',false); // causes bosettings not to ignore unsetting all - $select .= html::checkbox_multiselect($GLOBALS['type'].'['.$name.']',$default,$values,true,'',5); + $select .= html::checkbox_multiselect($GLOBALS['type'].'['.$name.']',$default,$values,true,'',min(5,count($values))); } if($GLOBALS['type'] == 'user' && (string)$GLOBALS['egw']->preferences->default[$_appname][$name] !== '') {