diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php
index 73c3d071110..6660156e59e 100644
--- a/htdocs/imports/import.php
+++ b/htdocs/imports/import.php
@@ -1915,9 +1915,8 @@ if ($step == 6 && $datatoimport)
print '
';
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/imports/index.php b/htdocs/imports/index.php
index cd67a90e4dd..b1852a3de4f 100644
--- a/htdocs/imports/index.php
+++ b/htdocs/imports/index.php
@@ -134,7 +134,6 @@ print '';
//print '';
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/livraison/card.php b/htdocs/livraison/card.php
index b33b9b4fb7a..003d6450de7 100644
--- a/htdocs/livraison/card.php
+++ b/htdocs/livraison/card.php
@@ -781,6 +781,6 @@ else
}
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php
index 79569f62df3..42b604f03d5 100644
--- a/htdocs/loan/card.php
+++ b/htdocs/loan/card.php
@@ -805,6 +805,6 @@ if ($id > 0)
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/loan/createschedule.php b/htdocs/loan/createschedule.php
index e895edeec62..08ca019f00e 100644
--- a/htdocs/loan/createschedule.php
+++ b/htdocs/loan/createschedule.php
@@ -210,6 +210,7 @@ print '';
print '
';
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/loan/document.php b/htdocs/loan/document.php
index b90144ea8f8..2c762b624d2 100644
--- a/htdocs/loan/document.php
+++ b/htdocs/loan/document.php
@@ -163,7 +163,6 @@ else
print $langs->trans("ErrorUnknown");
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/loan/index.php b/htdocs/loan/index.php
index 426a4f66491..5b81ebbb023 100644
--- a/htdocs/loan/index.php
+++ b/htdocs/loan/index.php
@@ -202,6 +202,6 @@ else
dol_print_error($db);
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/loan/info.php b/htdocs/loan/info.php
index d5b6e673f7c..3a092e4cb84 100644
--- a/htdocs/loan/info.php
+++ b/htdocs/loan/info.php
@@ -113,5 +113,6 @@ print '';
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/loan/note.php b/htdocs/loan/note.php
index f38ed50e431..2ed8e82f20b 100644
--- a/htdocs/loan/note.php
+++ b/htdocs/loan/note.php
@@ -129,6 +129,7 @@ if ($id > 0)
dol_fiche_end();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/loan/payment/card.php b/htdocs/loan/payment/card.php
index e19e33bc31e..919139bd6e3 100644
--- a/htdocs/loan/payment/card.php
+++ b/htdocs/loan/payment/card.php
@@ -292,8 +292,6 @@ if (empty($action) && ! empty($user->rights->loan->delete))
print '';
-
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/margin/admin/margin.php b/htdocs/margin/admin/margin.php
index ced69451d9d..4ccdcc4542a 100644
--- a/htdocs/margin/admin/margin.php
+++ b/htdocs/margin/admin/margin.php
@@ -278,5 +278,6 @@ dol_fiche_end();
print '
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/margin/agentMargins.php b/htdocs/margin/agentMargins.php
index 8c62b4dd6fe..dc546a7f9b4 100644
--- a/htdocs/margin/agentMargins.php
+++ b/htdocs/margin/agentMargins.php
@@ -268,6 +268,7 @@ $(document).ready(function() {
});
'."\n";
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/margin/checkMargins.php b/htdocs/margin/checkMargins.php
index 0612c143497..7160a13ed59 100644
--- a/htdocs/margin/checkMargins.php
+++ b/htdocs/margin/checkMargins.php
@@ -321,5 +321,6 @@ print '';
$db->free($result);
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/margin/customerMargins.php b/htdocs/margin/customerMargins.php
index 45b604d1919..7b33517556e 100644
--- a/htdocs/margin/customerMargins.php
+++ b/htdocs/margin/customerMargins.php
@@ -383,5 +383,6 @@ $(document).ready(function() {
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/margin/productMargins.php b/htdocs/margin/productMargins.php
index d827f5d985e..55fef4e5c35 100644
--- a/htdocs/margin/productMargins.php
+++ b/htdocs/margin/productMargins.php
@@ -367,5 +367,6 @@ $(document).ready(function() {
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/margin/tabs/productMargins.php b/htdocs/margin/tabs/productMargins.php
index 94eff1911e7..b4c1ac0cdd0 100644
--- a/htdocs/margin/tabs/productMargins.php
+++ b/htdocs/margin/tabs/productMargins.php
@@ -273,5 +273,6 @@ print '
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/margin/tabs/thirdpartyMargins.php b/htdocs/margin/tabs/thirdpartyMargins.php
index eb61e4ec41f..2ecd6088abf 100644
--- a/htdocs/margin/tabs/thirdpartyMargins.php
+++ b/htdocs/margin/tabs/thirdpartyMargins.php
@@ -282,5 +282,6 @@ print '
';
+// End of page
llxFooter();
$db->close();