diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php
index 3f50c6ab6c8..576851b7e2e 100644
--- a/htdocs/comm/card.php
+++ b/htdocs/comm/card.php
@@ -403,7 +403,7 @@ if ($object->id > 0)
print '
| ';
if ($user->rights->societe->creer && !$user->societe_id > 0)
{
- print 'id).'">'.img_edit($langs->trans("Modify")).'';
+ print 'id).'">'.img_edit($langs->trans("Modify")).'';
}
print ' | ';
print '';
@@ -425,8 +425,6 @@ if ($object->id > 0)
print '';
$limit_field_type = (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE)) ? 'numeric' : 'amount';
print $form->editfieldval("OutstandingBill", 'outstanding_limit', $object->outstanding_limit, $object, $user->rights->societe->creer, $limit_field_type, ($object->outstanding_limit != '' ? price($object->outstanding_limit) : ''));
- //if (empty($object->outstanding_limit)) print $langs->trans("NoLimit");
-
print ' | ';
print '';
}
diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 7f9ada37e7d..8a0341135c7 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -115,7 +115,7 @@ class FormFile
if (empty($title)) $title=$langs->trans("AttachANewFile");
if ($title != 'none') $out.=load_fiche_titre($title, null, null);
- if (empty($usewithoutform))
+ if (empty($usewithoutform)) // Try to avoid this and set instead the form by the caller.
{
$out .= '