'.(isset($vals[$status.$bool])?$vals[$status.$bool]:0).' ';
@@ -198,10 +196,8 @@ if (! empty($conf->ficheinter->enabled))
if ($num)
{
$i = 0;
- $var = true;
while ($i < $num)
{
-
$obj = $db->fetch_object($resql);
print '';
print '| ';
@@ -248,7 +244,6 @@ if ($resql)
if ($num)
{
$i = 0;
- $var = true;
while ($i < $num)
{
@@ -319,10 +314,8 @@ if (! empty($conf->ficheinter->enabled))
if ($num)
{
$i = 0;
- $var = true;
while ($i < $num)
{
-
$obj = $db->fetch_object($resql);
print ' |
';
print '| ';
diff --git a/htdocs/fichinter/stats/index.php b/htdocs/fichinter/stats/index.php
index b00b1391003..48890ca0897 100644
--- a/htdocs/fichinter/stats/index.php
+++ b/htdocs/fichinter/stats/index.php
@@ -285,7 +285,7 @@ print ' | % | ';
print '
';
$oldyear=0;
-$var=true;
+
foreach ($data as $val)
{
$year = $val['year'];
@@ -293,7 +293,7 @@ foreach ($data as $val)
{ // If we have empty year
$oldyear--;
- print '';
+ print '
';
print '| 0?'&socid='.$socid:'').($userid>0?'&userid='.$userid:'').'">'.$oldyear.' | ';
print '0 | ';
@@ -306,7 +306,7 @@ foreach ($data as $val)
}
- print '
';
+ print '
';
print '| 0?'&socid='.$socid:'').($userid>0?'&userid='.$userid:'').'">'.$year.' | ';
print ''.$val['nb'].' | ';
print ''.round($val['nb_diff']).' | ';
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index f0e9793f9a1..0a6dafb70e7 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -935,13 +935,11 @@ if ($resql)
$projectstatic=new Project($db);
$i=0;
- $var=true;
$totalarray=array();
while ($i < min($num,$limit))
{
$obj = $db->fetch_object($resql);
-
$objectstatic->id=$obj->rowid;
$objectstatic->ref=$obj->ref;
$objectstatic->ref_supplier = $obj->ref_supplier;
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 8c77feb2187..8402a82f4fe 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -822,8 +822,6 @@ if ($resql)
if ($num > 0)
{
$i=0;
-
- $var=true;
$totalarray=array();
while ($i < min($num,$limit))
{
diff --git a/htdocs/fourn/facture/rapport.php b/htdocs/fourn/facture/rapport.php
index ee7f5f99769..495bc7a4645 100644
--- a/htdocs/fourn/facture/rapport.php
+++ b/htdocs/fourn/facture/rapport.php
@@ -146,7 +146,7 @@ if ($year)
print ''.$langs->trans("Size").' | ';
print ''.$langs->trans("Date").' | ';
print '
';
- $var=true;
+
if (is_resource($handle))
{
while (($file = readdir($handle))!==false)
@@ -156,7 +156,7 @@ if ($year)
$tfile = $dir . '/'.$year.'/'.$file;
$relativepath = $year.'/'.$file;
- print "".'| '.img_pdf().' '.$file.' | ';
+ print '
'.'| '.img_pdf().' '.$file.' | ';
print ''.dol_print_size(dol_filesize($tfile)).' | ';
print ''.dol_print_date(dol_filemtime($tfile),"dayhour").' |
';
}
diff --git a/htdocs/fourn/recap-fourn.php b/htdocs/fourn/recap-fourn.php
index fc5821b96f8..f85d1831f37 100644
--- a/htdocs/fourn/recap-fourn.php
+++ b/htdocs/fourn/recap-fourn.php
@@ -82,7 +82,6 @@ if ($socid > 0)
$resql=$db->query($sql);
if ($resql)
{
- $var=true;
$num = $db->num_rows($resql);
print '';