fix unfreed result on watchlist page

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@378 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-09-29 06:50:23 +00:00
parent 5b88a41dd6
commit 063403b58d

View file

@ -303,10 +303,14 @@ class UserService {
} }
$arrWatch = array(); $arrWatch = array();
if ($this->db->sql_numrows($dbresult) == 0) if ($this->db->sql_numrows($dbresult) == 0) {
return $arrWatch; $this->db->sql_freeresult($dbresult);
while ($row =& $this->db->sql_fetchrow($dbresult)) return $arrWatch;
$arrWatch[] = $row['watched']; }
while ($row =& $this->db->sql_fetchrow($dbresult)) {
$arrWatch[] = $row['watched'];
}
$this->db->sql_freeresult($dbresult);
return $arrWatch; return $arrWatch;
} }