From 4043df2e666bbda09b5efafb623eac8ab31fd98c Mon Sep 17 00:00:00 2001 From: james Date: Fri, 14 Dec 2007 15:46:01 +0000 Subject: [PATCH] set a minimum on config editor input text size, so if all fields are empty the text boxes are bigger than 1 characer long --- config_editor.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config_editor.inc.php b/config_editor.inc.php index 46df7aa..2a48c5a 100644 --- a/config_editor.inc.php +++ b/config_editor.inc.php @@ -161,6 +161,8 @@ function config_editor($category, $year, $array_name, $self) if($biggest>30) $size=30; else $size=$biggest+1; + //make sure size is at minimum 8, this way if all fields are empty you dont end up with 1 character long text boxes + if($size<8) $size=8; $line = 1; foreach($varkeys as $k) {