forked from Wavyzz/dolibarr
Fix: Correction des mauvaises utilisations des fetch_objet ou on passait un paramtre jamais utilis.
This commit is contained in:
@@ -322,7 +322,7 @@ class DoliDb {
|
||||
function fetch_object($resultset=0)
|
||||
{
|
||||
// Si le resultset n'est pas fourni, on prend le dernier utilis<69> sur cette connexion
|
||||
if (! is_resource($resultset)) { $statement=$this->results; }
|
||||
if (! is_resource($resultset)) { $resultset=$this->results; }
|
||||
return mysql_fetch_object($resultset);
|
||||
}
|
||||
|
||||
|
||||
@@ -341,7 +341,7 @@ class DoliDb
|
||||
function fetch_object($resultset=0)
|
||||
{
|
||||
// Si le resultset n'est pas fourni, on prend le dernier utilis<69> sur cette connexion
|
||||
if (! is_resource($resultset)) { $statement=$this->results; }
|
||||
if (! is_resource($resultset)) { $resultset=$this->results; }
|
||||
return pg_fetch_object($resultset);
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ if ( $db->query($sql) )
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($i);
|
||||
$obj = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
|
||||
print '<td align="center">'.$obj->cc."</td></tr>";
|
||||
@@ -118,7 +118,7 @@ if ( $db->query($sql) )
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($i);
|
||||
$obj = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
|
||||
print '<td align="center">'.$obj->cc."</td></tr>";
|
||||
|
||||
@@ -102,7 +102,7 @@ class LolixSociete {
|
||||
{
|
||||
if ($this->db->num_rows())
|
||||
{
|
||||
$obj = $this->db->fetch_object(0);
|
||||
$obj = $this->db->fetch_object();
|
||||
|
||||
$this->nom = $obj->nom;
|
||||
$this->active = $obj->active;
|
||||
|
||||
@@ -78,7 +78,7 @@ if ($result)
|
||||
|
||||
while ($i < min($num,$conf->liste_limit))
|
||||
{
|
||||
$obj = $db->fetch_object( $i);
|
||||
$obj = $db->fetch_object();
|
||||
|
||||
$var=!$var;
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ if ( $db->query($sql) )
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($i);
|
||||
$obj = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
|
||||
print '<td align="center">'.$obj->cc."</td></tr>";
|
||||
@@ -118,7 +118,7 @@ if ( $db->query($sql) )
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($i);
|
||||
$obj = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
|
||||
print '<td align="center">'.$obj->cc."</td></tr>";
|
||||
|
||||
@@ -78,7 +78,7 @@ if ($result)
|
||||
|
||||
while ($i < min($num,$conf->liste_limit))
|
||||
{
|
||||
$obj = $db->fetch_object( $i);
|
||||
$obj = $db->fetch_object($result);
|
||||
|
||||
$var=!$var;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user