diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 551c538617a..4c5abb8d1e4 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -177,7 +177,7 @@ if ($_GET["action"] == 'create') { print_fiche_titre($langs->trans("NewSocialContribution")); print "
\n"; - + if ($mesg) print $mesg.'
'; $var=false; @@ -207,12 +207,12 @@ if ($_GET["action"] == 'create') print ''; print ' '; print ''; - print $html->select_date('-1', 'ech', 0, 0, 0, 'charge', 1); + print $html->select_date('-1', 'ech', 0, 0, 0, 'charge', 1); print ''; print '
YYYYMMDD'; - print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 9f3549b1afc..70d7f284d8d 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -586,16 +586,20 @@ class Form { global $db,$langs,$user; - print ''; + $num = $db->num_rows($resql); + $i = 0; - while ($i < $num) + while ($i < $num) { $obj = $db->fetch_object($resql); print '