From f8ec3baeea12d4d68d2517bc23b3f49be234dca6 Mon Sep 17 00:00:00 2001 From: Shish Moom Date: Wed, 1 Jul 2009 16:55:49 -0700 Subject: [PATCH] User::by_list from trunk --- 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