}
if ($row =& $this->db->sql_fetchrow($dbresult)) {
+ $this->db->sql_freeresult($dbresult);
return $row;
} else {
return false;
return false;
}
- return $this->db->sql_fetchrowset($dbresult);
-
+ $res = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
+ return $res;
}
function getDescriptionById($cdId) {
}
if ($row =& $this->db->sql_fetchrow($dbresult)) {
+ $this->db->sql_freeresult($dbresult);
return $row;
} else {
return false;
}
if ($row =& $this->db->sql_fetchrow($dbresult)) {
+ $this->db->sql_freeresult($dbresult);
return $row;
} else {
return false;