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:
parent
5b88a41dd6
commit
063403b58d
1 changed files with 8 additions and 4 deletions
|
@ -303,10 +303,14 @@ class UserService {
|
|||
}
|
||||
|
||||
$arrWatch = array();
|
||||
if ($this->db->sql_numrows($dbresult) == 0)
|
||||
return $arrWatch;
|
||||
while ($row =& $this->db->sql_fetchrow($dbresult))
|
||||
$arrWatch[] = $row['watched'];
|
||||
if ($this->db->sql_numrows($dbresult) == 0) {
|
||||
$this->db->sql_freeresult($dbresult);
|
||||
return $arrWatch;
|
||||
}
|
||||
while ($row =& $this->db->sql_fetchrow($dbresult)) {
|
||||
$arrWatch[] = $row['watched'];
|
||||
}
|
||||
$this->db->sql_freeresult($dbresult);
|
||||
return $arrWatch;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue