diff --git a/htdocs/public/users/view.php b/htdocs/public/users/view.php index 4ec1fb67536..7d3d04a6ea7 100644 --- a/htdocs/public/users/view.php +++ b/htdocs/public/users/view.php @@ -409,12 +409,14 @@ if ($usersection) { // Output payment summary form print ''; - print '
'; + if ($usersection) { + print '
'; - print $usersection; + print $usersection; - print '
'."\n"; - print "\n"; + print '
'."\n"; + print "\n"; + } print ''."\n"; @@ -506,21 +508,23 @@ if (!getDolUserInt('USER_PUBLIC_HIDE_COMPANY', 0, $object)) { // Output payment summary form print ''; - print '
'; + if ($companysection || $mysoc->name) { + print '
'; - // Add company info - if ($mysoc->name) { - print '
'; - print dol_escape_htmltag($mysoc->name); - print '
'; - print '
'; + // Add company info + if ($mysoc->name) { + print '
'; + print dol_escape_htmltag($mysoc->name); + print '
'; + print '
'; + } + + print $companysection; + + print '
'."\n"; + print "\n"; } - print $companysection; - - print '
'."\n"; - print "\n"; - print ''."\n"; print ''."\n";