diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php
index c4bf31afc87..a786cf5ca28 100644
--- a/htdocs/compta/bank/annuel.php
+++ b/htdocs/compta/bank/annuel.php
@@ -200,7 +200,6 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
}
print '';
-$var=true;
for ($mois = 1 ; $mois < 13 ; $mois++)
{
diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php
index 9afe5319ef5..280cd9bdbc0 100644
--- a/htdocs/compta/bank/budget.php
+++ b/htdocs/compta/bank/budget.php
@@ -70,7 +70,6 @@ if ($result)
$num = $db->num_rows($result);
$i = 0; $total = 0; $totalnb = 0;
- $var=true;
while ($i < $num)
{
$objp = $db->fetch_object($result);
diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php
index c425dd25b58..a262a63e045 100644
--- a/htdocs/compta/bank/list.php
+++ b/htdocs/compta/bank/list.php
@@ -402,7 +402,7 @@ print "\n";
$total = array(); $found = 0; $i=0; $lastcurrencycode='';
-$var=true;
+
foreach ($accounts as $key=>$type)
{
if ($i >= $limit) break;
@@ -412,7 +412,6 @@ foreach ($accounts as $key=>$type)
$obj = new Account($db);
$obj->fetch($key);
- $var = !$var;
$solde = $obj->solde(1);
if (! empty($lastcurrencycode) && $lastcurrencycode != $obj->currency_code)
diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php
index b566a4146a5..0fb8880ce87 100644
--- a/htdocs/compta/bank/treso.php
+++ b/htdocs/compta/bank/treso.php
@@ -115,8 +115,6 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
print '
'.$langs->trans("BankBalance").' | ';
print '';
- $var=true;
-
// Current balance
print '';
diff --git a/htdocs/compta/bank/various_payment/index.php b/htdocs/compta/bank/various_payment/index.php
index 3cb843e45f2..6535e0c0082 100644
--- a/htdocs/compta/bank/various_payment/index.php
+++ b/htdocs/compta/bank/various_payment/index.php
@@ -138,7 +138,6 @@ if ($result)
$num = $db->num_rows($result);
$i = 0;
$total = 0 ;
- $var=true;
$param='';
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.urlencode($contextpage);
diff --git a/htdocs/compta/charges/index.php b/htdocs/compta/charges/index.php
index 90d4aed021f..6d369b696b9 100644
--- a/htdocs/compta/charges/index.php
+++ b/htdocs/compta/charges/index.php
@@ -166,12 +166,10 @@ if (! empty($conf->tax->enabled) && $user->rights->tax->charges->lire)
$total = 0;
$totalnb = 0;
$totalpaye = 0;
- $var=true;
while ($i < min($num, $limit))
{
$obj = $db->fetch_object($resql);
- $var = !$var;
print '
';
// Date
$date=$obj->periode;
@@ -417,14 +415,13 @@ while($j<$numlt)
print_liste_field_titre("DatePayment",$_SERVER["PHP_SELF"],"pv.datep","",$param,'align="center"',$sortfield,$sortorder);
print_liste_field_titre("PayedByThisPayment",$_SERVER["PHP_SELF"],"pv.amount","",$param,'align="right"',$sortfield,$sortorder);
print "
\n";
- $var=1;
+
while ($i < $num)
{
$obj = $db->fetch_object($result);
$total = $total + $obj->amount;
-
print '';
print '| '.dol_print_date($db->jdate($obj->dm),'day').' | '."\n";
@@ -501,7 +498,7 @@ if (! empty($conf->salaries->enabled) && $user->rights->salaries->read)
if (! empty($conf->banque->enabled)) print_liste_field_titre("Account",$_SERVER["PHP_SELF"],"ba.label","",$param,"",$sortfield,$sortorder);
print_liste_field_titre("PayedByThisPayment",$_SERVER["PHP_SELF"],"s.amount","",$param,'align="right"',$sortfield,$sortorder);
print "
\n";
- $var=1;
+
while ($i < $num)
{
$obj = $db->fetch_object($result);
diff --git a/htdocs/compta/deplacement/list.php b/htdocs/compta/deplacement/list.php
index 606e79b311c..bdbdad0a712 100644
--- a/htdocs/compta/deplacement/list.php
+++ b/htdocs/compta/deplacement/list.php
@@ -169,7 +169,6 @@ if ($resql)
print '';
print "\n";
- $var=true;
while ($i < min($num,$limit))
{
$obj = $db->fetch_object($resql);
@@ -177,7 +176,6 @@ if ($resql)
$soc = new Societe($db);
if ($obj->socid) $soc->fetch($obj->socid);
-
print '';
// Id
print '| '.img_object($langs->trans("ShowTrip"),"trip").' '.$obj->rowid.' | ';
diff --git a/htdocs/compta/localtax/clients.php b/htdocs/compta/localtax/clients.php
index bd7a96faffe..9502ff46d2d 100644
--- a/htdocs/compta/localtax/clients.php
+++ b/htdocs/compta/localtax/clients.php
@@ -181,7 +181,6 @@ if($calc ==0 || $calc == 2)
if (is_array($coll_list))
{
- $var=true;
$total = 0; $totalamount = 0;
$i = 1;
foreach($coll_list as $coll)
@@ -256,7 +255,6 @@ if($calc ==0 || $calc == 1){
$reshook=$hookmanager->executeHooks('addVatLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
if (is_array($coll_list))
{
- $var=true;
$total = 0; $totalamount = 0;
$i = 1;
foreach($coll_list as $coll)
diff --git a/htdocs/compta/paiement/cheque/index.php b/htdocs/compta/paiement/cheque/index.php
index ae7195810f9..527bd05e3a1 100644
--- a/htdocs/compta/paiement/cheque/index.php
+++ b/htdocs/compta/paiement/cheque/index.php
@@ -68,7 +68,6 @@ print "
\n";
if ($resql)
{
- $var=false;
if ($row = $db->fetch_row($resql) )
{
$num = $row[0];
@@ -114,7 +113,6 @@ if ($resql)
print ''.$langs->trans("Status").' | ';
print "\n";
- $var=true;
while ( $objp = $db->fetch_object($resql) )
{
$checkdepositstatic->id=$objp->rowid;
diff --git a/htdocs/compta/paiement/cheque/list.php b/htdocs/compta/paiement/cheque/list.php
index c8762d06e7c..800f40b9694 100644
--- a/htdocs/compta/paiement/cheque/list.php
+++ b/htdocs/compta/paiement/cheque/list.php
@@ -195,7 +195,6 @@ if ($resql)
if ($num > 0)
{
- $var=true;
while ($i < min($num,$limit))
{
$objp = $db->fetch_object($resql);