php warning removed
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_allusers.php
index c9af95ff3a778dcc1430bbfc3ec7bcb0f2203981..c9faed8244e3153d3a54fbf217f51e7b731f79ee 100644 (file)
@@ -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);
+               }
        }
 ?>
This page took 0.129024 seconds and 4 git commands to generate.