allusers fix
authorDaniel Hromada <hromi@Aphrodité.(none)>
Sun, 30 Jan 2011 23:35:32 +0000 (00:35 +0100)
committerDaniel Hromada <hromi@Aphrodité.(none)>
Sun, 30 Jan 2011 23:35:32 +0000 (00:35 +0100)
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.175709 seconds and 4 git commands to generate.