diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 9d1812c918f..25d59efd99b 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -42,7 +42,7 @@ if ($_GET["socidp"]) { if ( $db->num_rows() ) { - $objsoc = $db->fetch_object(0); + $objsoc = $db->fetch_object($result); } $db->free(); } @@ -219,7 +219,7 @@ if ($_GET["action"] == 'create') $numprojet = $db->num_rows(); while ($i < $numprojet) { - $projet = $db->fetch_object($i); + $projet = $db->fetch_object(); print ""; $i++; } diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php index 663fe979ee1..6ccffb977f6 100644 --- a/htdocs/fichinter/fichinter.class.php +++ b/htdocs/fichinter/fichinter.class.php @@ -150,7 +150,7 @@ class Fichinter { if ($this->db->num_rows()) { - $obj = $this->db->fetch_object(0); + $obj = $this->db->fetch_object(); $this->id = $rowid; $this->date = $obj->di; diff --git a/htdocs/fichinter/index.php b/htdocs/fichinter/index.php index a5e468f65b1..10a8e06507b 100644 --- a/htdocs/fichinter/index.php +++ b/htdocs/fichinter/index.php @@ -82,7 +82,7 @@ if ( $db->query($sql) ) $var=True; while ($i < $num) { - $objp = $db->fetch_object( $i); + $objp = $db->fetch_object(); $var=!$var; print "