From b189725fa2f37d5dbfa82e350554b372b164290a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 7 Aug 2015 08:54:41 +0000 Subject: [PATCH] form : the help are always in "text-muted" and not in error when there is a detected error git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2219 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- form.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/form.php b/form.php index 653d407..551e35c 100644 --- a/form.php +++ b/form.php @@ -363,7 +363,8 @@ class formfield { $res .= " "; - if (isset ($this->help)) $res .= $this->help."
"; + if (isset ($this->help)) + $res .= "".$this->help."
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -441,7 +442,8 @@ class formfield { $res .= " "; - if (isset ($this->help)) $res .= $this->help."
"; + if (isset ($this->help)) + $res .= "".$this->help."
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -514,7 +516,8 @@ class formfield { $res .= " "; - if (isset ($this->help)) $res .= $this->help."
"; + if (isset ($this->help)) + $res .= "".$this->help."
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -614,7 +617,8 @@ class formfield { $res .= " "; - if (isset ($this->help)) $res .= $this->help."
"; + if (isset ($this->help)) + $res .= "".$this->help."
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -711,7 +715,8 @@ class formfield { $res .= " "; - if (isset ($this->help)) $res .= $this->help."
"; + if (isset ($this->help)) + $res .= "".$this->help."
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; } @@ -770,7 +775,8 @@ class formfield { $res .= " "; - if (isset ($this->help)) $res .= $this->help."
"; + if (isset ($this->help)) + $res .= "".$this->help."
"; if (isset ($this->errors)) $res .= $this->errors[1]; $res .= "
\n"; }