diff --git a/htdocs/accountancy/admin/account.php b/htdocs/accountancy/admin/account.php
index 0c929ef5de523ea1ce82dfca5b92c56da0eb33de..3b20885b89702699c62be6bdf8e9b0adf91cb4f9 100644
--- a/htdocs/accountancy/admin/account.php
+++ b/htdocs/accountancy/admin/account.php
@@ -160,7 +160,7 @@ if ($result) {
 	print '</td>';
 	print '</tr>';
 	
-	$var = True;
+	$var = true;
 	
 	while ( $i < min($num, $limit) ) {
 		$obj = $db->fetch_object($resql);
diff --git a/htdocs/accountancy/admin/export.php b/htdocs/accountancy/admin/export.php
index ca7e5f84e074ed2f8f77c4a6556c5e43be2b9742..dc8f50241a1a5a22ddd5422595409b7ceee31c87 100644
--- a/htdocs/accountancy/admin/export.php
+++ b/htdocs/accountancy/admin/export.php
@@ -99,7 +99,7 @@ print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'
 print '<input type="hidden" name="action" value="update">';
 
 print '<table class="noborder" width="100%">';
-$var = True;
+$var = true;
 
 print '<tr class="liste_titre">';
 print '<td colspan="2">' . $langs->trans("Modelcsv") . '</td>';
diff --git a/htdocs/accountancy/admin/importaccounts.php b/htdocs/accountancy/admin/importaccounts.php
index b350aa8e59092c7f989d03f59528639c65af7477..9e5c59f45555ac92f0e2483f1de8016460c04fca 100644
--- a/htdocs/accountancy/admin/importaccounts.php
+++ b/htdocs/accountancy/admin/importaccounts.php
@@ -135,7 +135,7 @@ if ($result) {
 	print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">' . "\n";
 	print '<input type="hidden" name="action" value="import">';
 	
-	$var = True;
+	$var = true;
 	while ( $i < min($num_lines, $limit) ) {
 		$objp = $db->fetch_object($result);
 		$var = ! $var;
diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php
index 8e548f8992e39f4da5ead9697252c50542156938..e72df6a04315670d40d35d73d39886db1b87d204 100644
--- a/htdocs/accountancy/admin/index.php
+++ b/htdocs/accountancy/admin/index.php
@@ -191,7 +191,7 @@ print "<br>\n";
  *  Define Chart of accounts
  */
 print '<table class="noborder" width="100%">';
-$var = True;
+$var = true;
 
 print '<tr class="liste_titre">';
 print '<td colspan="3">';
@@ -211,7 +211,7 @@ $sql .= " AND fk_pays = " . $mysoc->country_id;
 dol_syslog('accountancy/admin/index.php:: $sql=' . $sql);
 $resql = $db->query($sql);
 
-$var = True;
+$var = true;
 
 if ($resql) {
 	$num = $db->num_rows($resql);
diff --git a/htdocs/accountancy/admin/productaccount.php b/htdocs/accountancy/admin/productaccount.php
index 5c1cba946ee53e119c8de81c61aefb1b8beab44b..402ff72ed84addca3a91b45ae6f2bb82f92b77a4 100644
--- a/htdocs/accountancy/admin/productaccount.php
+++ b/htdocs/accountancy/admin/productaccount.php
@@ -89,7 +89,7 @@ if ($resql) {
 	print '<td align="left">' . $langs->trans("Accountancy_code_sell") . '</td>';
 	print '<td align="left">' . $langs->trans("Accountancy_code_sell_suggest") . '</td>';
 
-	$var = True;
+	$var = true;
 
 	while ( $i < min($num, 250) ) {
 		$obj = $db->fetch_object($resql);
diff --git a/htdocs/commande/customer.php b/htdocs/commande/customer.php
index f40277ea34ab53335e0fbee1bae5a2021daf84c7..333ce5f790835360563fc482f3f87df9588b67f9 100644
--- a/htdocs/commande/customer.php
+++ b/htdocs/commande/customer.php
@@ -146,7 +146,7 @@ if ($resql)
 	print '</td>';
 	print "</tr>\n";
 
-	$var=True;
+	$var=true;
 
 	while ($i < min($num,$conf->liste_limit))
 	{
diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index b7d9be0552970b9e152ecf624818e14181c9b874..0d2815a6d67142bbc3fb67e38ad273d552e6a803 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -187,7 +187,7 @@ if (! empty($conf->commande->enabled))
 		if ($num)
 		{
 			$i = 0;
-			$var = True;
+			$var = true;
 			while ($i < $num)
 			{
 				$var=!$var;
@@ -238,7 +238,7 @@ if ($resql)
 	if ($num)
 	{
 		$i = 0;
-		$var = True;
+		$var = true;
 		while ($i < $num)
 		{
 			$var=!$var;
@@ -308,7 +308,7 @@ if (! empty($conf->commande->enabled))
 		if ($num)
 		{
 			$i = 0;
-			$var = True;
+			$var = true;
 			while ($i < $num)
 			{
 				$var=!$var;
@@ -379,7 +379,7 @@ if (! empty($conf->commande->enabled))
 		if ($num)
 		{
 			$i = 0;
-			$var = True;
+			$var = true;
 			while ($i < $num)
 			{
 				$var=!$var;
diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php
index 49824a7f6cb3f9df715461d37e928743f42389e1..1009b0302107c4288b0321507c04d32cabf185ef 100644
--- a/htdocs/commande/orderstoinvoice.php
+++ b/htdocs/commande/orderstoinvoice.php
@@ -622,7 +622,7 @@ if (($action != 'create' && $action != 'add') || !$error)
 		print '</form>';
 
 		print '<form name="orders2invoice" action="orderstoinvoice.php" method="GET">';
-		$var=True;
+		$var=true;
 		$generic_commande = new Commande($db);
 
 		while ($i < $num)
diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php
index 528ed14e84936cf38b2a5ea7b18e082844fb6f7b..14751d308c4406801a6fb91b2cab5ed35216c9ab 100644
--- a/htdocs/compta/clients.php
+++ b/htdocs/compta/clients.php
@@ -177,7 +177,7 @@ if ($resql)
 	print '</td>';
 	print "</tr>\n";
 
-	$var=True;
+	$var=true;
 
 	while ($i < min($num,$conf->liste_limit))
 	{
diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index 02674b5974576af0039bc3e537cdd51f5dd45366..55ef0a5ef80115211eb8bd3f725e9d98afb90dab 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -228,7 +228,7 @@ if ($action == 'create')
 				if (empty($conf->global->PRODUIT_MULTIPRICES)) print '<td align="right">'.$langs->trans("CurrentProductPrice").'</td>';
 				print "</tr>\n";
 			}
-			$var=True;
+			$var=true;
 			while ($i < $num)
 			{
 				$objp = $db->fetch_object($result);
@@ -447,7 +447,7 @@ else
 
 			$num = count($object->lines);
 			$i = 0;
-			$var=True;
+			$var=true;
 			while ($i < $num)
 			{
 				$var=!$var;
@@ -572,7 +572,7 @@ else
 
 			if ($num > 0)
 			{
-				$var=True;
+				$var=true;
 				while ($i < min($num,$limit))
 				{
 					$objp = $db->fetch_object($resql);
diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php
index d3987bcbad8145ef2efdf5dbb08344430799813d..ea0d896f5d193968bff1b91c05382bc8b24b2e13 100644
--- a/htdocs/compta/facture/impayees.php
+++ b/htdocs/compta/facture/impayees.php
@@ -600,7 +600,7 @@ if ($resql)
 
 	if ($num > 0)
 	{
-		$var=True;
+		$var=true;
 		$total_ht=0;
 		$total_tva=0;
 		$total_ttc=0;
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index 39dcc6b64270dba265a02b344099ed1ac19c561b..ba27f5659a9b390a4913623ef9d7f2bf3e7a7a5f 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -333,7 +333,7 @@ if ($resql)
 
     if ($num > 0)
     {
-        $var=True;
+        $var=true;
         $total_ht=0;
         $total_tva=0;
         $total_ttc=0;
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 4bfa4d8104803eb17b56b2eebbeeabb7f87c4f61..48ca10afd2d3d260dd3504bc4e2d0e079e66ffe4 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -491,7 +491,7 @@ if ($object->id > 0)
 	print '<td align="center">'.$langs->trans("WithdrawalReceipt").'</td>';
 	print '<td align="center">'.$langs->trans("User").'</td><td>&nbsp;</td><td>&nbsp;</td>';
 	print '</tr>';
-	$var=True;
+	$var=true;
 
 	if ($result_sql)
 	{
diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 1908b0670ff9ae706da0a2fcb6b51cb80f3794de..fc2943f05e0c2be3629fb54c9daffd0502560a89 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -494,7 +494,7 @@ if (! empty($conf->don->enabled) && $user->rights->societe->lire)
 		print '</tr>';
 		if ($num)
 		{
-			$var = True;
+			$var = true;
 			$total_ttc = $totalam = $total = 0;
 
 			$var=true;
@@ -908,7 +908,7 @@ if ($resql)
 	print '<table class="noborder" width="100%">';
 	print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("TasksToDo").'</td>';
 	print "</tr>\n";
-	$var = True;
+	$var = true;
 	$i = 0;
 	while ($i < $db->num_rows($resql))
 	{
diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php
index 21b2eb9e15496b149b2eddacf5d7b50af69d3b73..56278f15c5d7e09e34da49edfca00b61e1bcd7ec 100644
--- a/htdocs/compta/paiement.php
+++ b/htdocs/compta/paiement.php
@@ -509,7 +509,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
                 print '<td align="right">&nbsp;</td>';
                 print "</tr>\n";
 
-                $var=True;
+                $var=true;
                 $total=0;
                 $totalrecu=0;
                 $totalrecucreditnote=0;
@@ -687,7 +687,7 @@ if (! GETPOST('action'))
     {
         $num = $db->num_rows($resql);
         $i = 0;
-        $var=True;
+        $var=true;
 
         print_barre_liste($langs->trans('Payments'), $page, $_SERVER["PHP_SELF"],'',$sortfield,$sortorder,'',$num);
         print '<table class="noborder" width="100%">';
diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php
index a54a0bcd935ad36b3f5f293d4f8b2cd5da7d2871..7e26fa5789f579ff2beaddb7d18768e9e9e1fdf1 100644
--- a/htdocs/compta/paiement_charge.php
+++ b/htdocs/compta/paiement_charge.php
@@ -253,7 +253,7 @@ if ($_GET["action"] == 'create')
 	print '<td align="center">'.$langs->trans("Amount").'</td>';
 	print "</tr>\n";
 
-	$var=True;
+	$var=true;
 	$total=0;
 	$totalrecu=0;