diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 753d25d8e3c..f7f6a6f1022 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -22,10 +22,10 @@
*/
/**
- \file htdocs/compta/index.php
- \ingroup compta
- \brief Page accueil zone comptabilité
- \version $Revision$
+ \file htdocs/compta/index.php
+ \ingroup compta
+ \brief Page accueil zone comptabilité
+ \version $Revision$
*/
require("./pre.inc.php");
@@ -89,7 +89,7 @@ print '
";
@@ -366,23 +366,23 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
// \todo Mettre ici recup des actions en rapport avec la compta
-$result = 0;
-if ( $result )
+$resql = 0;
+if ($resql)
{
print '';
print '| '.$langs->trans("TasksToDo").' | ';
print "
\n";
$var = True;
$i = 0;
- while ($i < $db->num_rows() )
+ while ($i < $db->num_rows($resql) )
{
- $obj = $db->fetch_object();
+ $obj = $db->fetch_object($resql);
$var=!$var;
print "| ".strftime("%d %b %Y",$obj->da)." | $obj->libelle $obj->label |
";
$i++;
}
- $db->free();
+ $db->free($resql);
print "
";
}