diff --git a/form.php b/form.php index 0de6f99..2d3c951 100644 --- a/form.php +++ b/form.php @@ -782,7 +782,9 @@ class formfield // No $this->multiple, $this->rows $this->cols $this->placeholder, // $this->maxlength if (! is_array ($this->titles) || count ($this->titles) === 0) - $this->titles = array (""); + $titles = array (""); + else + $titles = $this->titles; $res = ""; $res .= "
fieldwidth'>\n"; - foreach ($this->titles as $key=>$val) + foreach ($titles as $key=>$val) { $res .= "
\n"; $res .= " name, ENT_QUOTES)."]"; - if (count ($this->titles) > 1) + if (count ($titles) > 1) $res .= "[$key]"; $res .= "' value='unset'"; $res .= "/>"; $res .= "