This commit is contained in:
Rodolphe Quiedeville 2003-08-04 14:20:42 +00:00
parent 4c0f17c8d8
commit bb91523500

View File

@ -151,6 +151,9 @@ class Contrat
if ($this->db->query($sql)) if ($this->db->query($sql))
{ {
$num = $this->db->num_rows(); $num = $this->db->num_rows();
if ($num > 0)
{
$i = 0; $i = 0;
while ($i < $num) while ($i < $num)
@ -172,6 +175,11 @@ class Contrat
} }
} }
} }
else
{
$this->db->free();
}
}
else else
{ {
print $this->db->error(); print $this->db->error();