Fix additional space after card name

This commit is contained in:
Tobias Sekan 2020-01-28 08:55:49 +01:00 committed by GitHub
parent 0f4420407d
commit 713fb1a290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7297,14 +7297,23 @@ class Form
{
$ret .= '';
}
elseif ($fieldref != 'none') $ret .= dol_htmlentities($object->$fieldref);
elseif ($fieldref != 'none')
{
$ret.=dol_htmlentities($object->$fieldref);
}
if ($morehtmlref)
{
$ret .= ' '.$morehtmlref;
// don't add a additional space, when "$morehtmlref" starts with a HTML div tag
if(substr($morehtmlref, 0, 4) != '<div')
{
$ret.=' ';
}
$ret.=$morehtmlref;
}
$ret .= '</div>';
$ret.='</div>';
$ret .= '</div><!-- End banner content -->';