avoid extra space after idprof

This commit is contained in:
Frédéric FRANCE 2022-06-09 12:04:35 +02:00 committed by GitHub
parent 0104f00a7a
commit 70af9b548f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2672,7 +2672,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print dol_print_profids($object->$key, 'ProfId'.$i, $object->country_code, 1);
if ($object->$key) {
if ($object->id_prof_check($i, $object) > 0) {
print '   '.$object->id_prof_url($i, $object);
if (!empty($object->id_prof_url($i, $object))) {
print '   '.$object->id_prof_url($i, $object);
}
} else {
print ' <span class="error">('.$langs->trans("ErrorWrongValue").')</span>';
}