Fix cosmetic bug : css_size will be used if it is null,

This commit is contained in:
Dany De Bontridder 2022-09-03 18:46:18 +02:00 committed by sparkyx
parent f0c744c36f
commit 84797b9bdd

View file

@ -56,7 +56,7 @@ class IText extends HtmlInput
$t= 'title="'.$this->title.'" ';
$autofocus=($this->autofocus)?" autofocus ":"";
$require=($this->require)?"required":"";
if ( ! isset ($this->css_size))
if ( ! isset ($this->css_size) || empty ($this->css_size))
{
$r= sprintf('<INPUT TYPE="TEXT" %s id="%s" name="%s" value="%s" placeholder="%s" title="%s"