Fix: Correction des mauvaises utilisations des fetch_objet ou on passait un paramètre jamais utilisé.

This commit is contained in:
Laurent Destailleur 2004-10-23 17:12:50 +00:00
parent 4ce75b6a78
commit ceb9a3345c
5 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ if ($_GET["socidp"])
{ {
if ( $db->num_rows() ) if ( $db->num_rows() )
{ {
$objsoc = $db->fetch_object(0); $objsoc = $db->fetch_object($result);
} }
$db->free(); $db->free();
} }
@ -219,7 +219,7 @@ if ($_GET["action"] == 'create')
$numprojet = $db->num_rows(); $numprojet = $db->num_rows();
while ($i < $numprojet) while ($i < $numprojet)
{ {
$projet = $db->fetch_object($i); $projet = $db->fetch_object();
print "<option value=\"$projet->rowid\">$projet->title</option>"; print "<option value=\"$projet->rowid\">$projet->title</option>";
$i++; $i++;
} }

View File

@ -150,7 +150,7 @@ class Fichinter
{ {
if ($this->db->num_rows()) if ($this->db->num_rows())
{ {
$obj = $this->db->fetch_object(0); $obj = $this->db->fetch_object();
$this->id = $rowid; $this->id = $rowid;
$this->date = $obj->di; $this->date = $obj->di;

View File

@ -82,7 +82,7 @@ if ( $db->query($sql) )
$var=True; $var=True;
while ($i < $num) while ($i < $num)
{ {
$objp = $db->fetch_object( $i); $objp = $db->fetch_object();
$var=!$var; $var=!$var;
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
print "<td><a href=\"fiche.php?id=$objp->fichid\">$objp->ref</a></td>\n"; print "<td><a href=\"fiche.php?id=$objp->fichid\">$objp->ref</a></td>\n";

View File

@ -109,7 +109,7 @@ if ( $db->query($sql) )
$DureeTotal = 0; $DureeTotal = 0;
while ($i < $num) while ($i < $num)
{ {
$objp = $db->fetch_object( $i); $objp = $db->fetch_object();
$var=!$var; $var=!$var;
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
print "<td><a href=\"fiche.php?id=$objp->fichid\">$objp->ref</a></td>\n"; print "<td><a href=\"fiche.php?id=$objp->fichid\">$objp->ref</a></td>\n";

View File

@ -227,7 +227,7 @@ class pdf_paiement {
while ($i < $lignes) while ($i < $lignes)
{ {
$objp = $this->db->fetch_object( $i); $objp = $this->db->fetch_object($result);
$var=!$var; $var=!$var;
$lines[$i][0] = $objp->facnumber; $lines[$i][0] = $objp->facnumber;