diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 83af6b7b..03e1954b 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -86,7 +86,11 @@ for ($m = 0; $m < sizeof($modules); $m++) { for ($l = 0; $l < sizeof($options[$modules[$m]]); $l++) { // option lines echo "\n"; for ($o = 0; $o < sizeof($options[$modules[$m]][$l]); $o++) { // line parts - echo ""; + echo ""; print_option($options[$modules[$m]][$l][$o], $modules[$m], $old_options); echo "\n"; } @@ -94,10 +98,10 @@ for ($m = 0; $m < sizeof($modules); $m++) { } echo "\n"; echo "\n"; + echo "
"; } // profile name and submit/abort buttons -echo "

 

"; echo ("\n"); echo ("\n"); echo ("\n"); @@ -164,6 +168,7 @@ function print_option($values, $modulename, $old_options) { break; // select box case 'select': + if (! is_numeric($values['size'])) $values['size'] = 1;// correct size if needed if ($values['multiple']) { echo "
" . _("Profile name") . ":