From c5e978835894d502777ebaa4b87772b19f4bd853 Mon Sep 17 00:00:00 2001 From: Shish Moom Date: Sat, 30 May 2009 06:47:35 -0700 Subject: [PATCH] fetch a block of users --- core/user.class.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/user.class.php b/core/user.class.php index e8959812..2fff0616 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -1,4 +1,8 @@ get_all("SELECT * FROM users WHERE id >= ? AND id < ?", array($offset, $offset+$limit)); + return array_map("_new_user", $rows); + } + /* * useful user object functions start here