From: "Mario (xenji) Mueller" <[email protected]>

Signed-off-by: Mario (xenji) Mueller <[email protected]>
---
 web/lib/acctfuncs.inc.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index d58c759..6f7c98a 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -327,9 +327,8 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
        }
 
        $result = db_query($q, $dbh);
-       $num_rows = mysql_num_rows($result);
 
-       while ($row = mysql_fetch_assoc($result)) {
+       while (($row = mysql_fetch_assoc($result)) != false) {
                $userinfo[] = $row;
        }
 
-- 
1.7.12

Reply via email to