diff --git a/htdocs/compta/stats/comp.php b/htdocs/compta/stats/comp.php index d7307a863e5..f708ae1133c 100644 --- a/htdocs/compta/stats/comp.php +++ b/htdocs/compta/stats/comp.php @@ -167,7 +167,7 @@ function factures ($db, $year, $month, $paye) { function pt ($db, $sql, $year) { - global $bc; + global $bc, $langs; $result = $db->query($sql); if ($result) { @@ -238,7 +238,7 @@ function pt ($db, $sql, $year) { function ppt ($db, $year, $socidp) { - global $bc,$conf; + global $bc,$conf,$langs; print "
| ';
diff --git a/htdocs/compta/stats/prev.php b/htdocs/compta/stats/prev.php
index 6b54270240b..227fc8aac7d 100644
--- a/htdocs/compta/stats/prev.php
+++ b/htdocs/compta/stats/prev.php
@@ -33,6 +33,7 @@ if ($user->societe_id > 0)
function pt ($db, $sql, $title) {
global $bc;
+ global $langs;
print ' |