From: Daniel Hromada Date: Sun, 30 Jan 2011 23:35:32 +0000 (+0100) Subject: allusers fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=689c7c3ffb662d354371c1fd7d5d97b3ef46251f;p=mirrors%2FKyberia-bloodline.git allusers fix --- 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); + } } ?>