From 689c7c3ffb662d354371c1fd7d5d97b3ef46251f Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Mon, 31 Jan 2011 00:35:32 +0100 Subject: [PATCH] allusers fix --- wwwroot/inc/smarty/node_methodz/function.get_allusers.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wwwroot/inc/smarty/node_methodz/function.get_allusers.php b/wwwroot/inc/smarty/node_methodz/function.get_allusers.php index c9af95f..c9faed8 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_allusers.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_allusers.php @@ -3,7 +3,9 @@ global $db,$node; $q="select user_id, login from users where hash='' order by login "; $set=$db->query($q); - $users[]=$set->getRecord(); - $smarty->assign('get_allusers',$users); + while ($set->next()) { + $users[]=$set->getRecord(); + $smarty->assign('get_allusers',$users); + } } ?> -- 2.30.2