From c58a6adf2e389a5f42a08a77cbe61ede98b9b842 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Sep 2011 22:25:01 +0000 Subject: [PATCH] Qual: Uniformize code --- htdocs/compta/sociales/index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index e5db721dead..ec0d6286858 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -121,13 +121,11 @@ if ($resql) print_barre_liste($langs->trans("SocialContributions"),$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num,$totalnboflines); } - if ($mesg) - { - print $mesg."
"; - } + + dol_htmloutput_mesg($mesg); - if (empty($mysoc->pays_id) && empty($mysoc->pays_code)) + if (empty($mysoc->country_id) && empty($mysoc->country_code)) { print '
'; $langs->load("errors");