Fix: Correction des mauvaises utilisations des fetch_objet ou on passait un paramètre jamais utilisé.
This commit is contained in:
parent
4ce75b6a78
commit
ceb9a3345c
@ -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++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user