diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php
index 906dbda4f6e..2fe58419b28 100644
--- a/htdocs/fourn/card.php
+++ b/htdocs/fourn/card.php
@@ -882,6 +882,6 @@ else
dol_print_error($db);
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/fourn/contact.php b/htdocs/fourn/contact.php
index a334442e9ab..a6adb0bad27 100644
--- a/htdocs/fourn/contact.php
+++ b/htdocs/fourn/contact.php
@@ -130,7 +130,6 @@ else
dol_print_error($db);
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/fourn/index.php b/htdocs/fourn/index.php
index 033bcc63a2a..0a3ceec93a1 100644
--- a/htdocs/fourn/index.php
+++ b/htdocs/fourn/index.php
@@ -313,6 +313,6 @@ if (count($companystatic->SupplierCategories))
//print "\n";
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/fourn/paiement/card.php b/htdocs/fourn/paiement/card.php
index daa452d0c29..0392bf3b8bd 100644
--- a/htdocs/fourn/paiement/card.php
+++ b/htdocs/fourn/paiement/card.php
@@ -407,6 +407,6 @@ else
dol_fiche_end();
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/fourn/paiement/info.php b/htdocs/fourn/paiement/info.php
index eafc4f2decc..83794c8fb58 100644
--- a/htdocs/fourn/paiement/info.php
+++ b/htdocs/fourn/paiement/info.php
@@ -57,6 +57,6 @@ print '
| ';
dol_print_object_info($object);
print ' |
';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/fourn/product/list.php b/htdocs/fourn/product/list.php
index 47bc949a758..9927b6b2b5d 100644
--- a/htdocs/fourn/product/list.php
+++ b/htdocs/fourn/product/list.php
@@ -308,5 +308,6 @@ else
dol_print_error($db);
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/fourn/recap-fourn.php b/htdocs/fourn/recap-fourn.php
index e680c18074e..1ff9f486510 100644
--- a/htdocs/fourn/recap-fourn.php
+++ b/htdocs/fourn/recap-fourn.php
@@ -191,5 +191,6 @@ else
dol_print_error($db);
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/ftp/admin/ftpclient.php b/htdocs/ftp/admin/ftpclient.php
index ee7acc9070d..1e9a6227825 100644
--- a/htdocs/ftp/admin/ftpclient.php
+++ b/htdocs/ftp/admin/ftpclient.php
@@ -309,6 +309,6 @@ else
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/ftp/index.php b/htdocs/ftp/index.php
index de8489ebb55..7c9527f3a9a 100644
--- a/htdocs/ftp/index.php
+++ b/htdocs/ftp/index.php
@@ -685,9 +685,8 @@ if ($conn_id)
}
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php
index 380f609ec6d..c0bfff15507 100644
--- a/htdocs/holiday/define_holiday.php
+++ b/htdocs/holiday/define_holiday.php
@@ -374,6 +374,6 @@ else
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/holiday/document.php b/htdocs/holiday/document.php
index cec638a769b..c452ac27ff0 100644
--- a/htdocs/holiday/document.php
+++ b/htdocs/holiday/document.php
@@ -295,7 +295,6 @@ else
print $langs->trans("ErrorUnknown");
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index 86ca95580b1..fcd5cc9d8b0 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -630,8 +630,8 @@ print '';
print '';
}*/
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/holiday/month_report.php b/htdocs/holiday/month_report.php
index 0faa2b56585..5bb3bcaeca8 100644
--- a/htdocs/holiday/month_report.php
+++ b/htdocs/holiday/month_report.php
@@ -194,6 +194,6 @@ else
print '';
print '';
-// Fin de page
-$db->close();
+// End of page
llxFooter();
+$db->close();
diff --git a/htdocs/holiday/view_log.php b/htdocs/holiday/view_log.php
index c36ccd1f4d7..c9cc2e6c16f 100644
--- a/htdocs/holiday/view_log.php
+++ b/htdocs/holiday/view_log.php
@@ -138,6 +138,6 @@ print ''."\n";
print ''."\n";
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/hrm/admin/admin_establishment.php b/htdocs/hrm/admin/admin_establishment.php
index f52cb1afc61..f7ebef5e623 100644
--- a/htdocs/hrm/admin/admin_establishment.php
+++ b/htdocs/hrm/admin/admin_establishment.php
@@ -145,5 +145,6 @@ print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/hrm/admin/admin_hrm.php b/htdocs/hrm/admin/admin_hrm.php
index ac47eec6292..c61480347bb 100644
--- a/htdocs/hrm/admin/admin_hrm.php
+++ b/htdocs/hrm/admin/admin_hrm.php
@@ -108,5 +108,6 @@ print '