1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 01:22:13 +02:00

Fix for user pagination

This commit is contained in:
Cameron 2016-03-24 13:43:00 -07:00
parent 811201ad5e
commit 6ab9f32f07

View File

@ -241,7 +241,7 @@ if (isset($id))
// --------------------- List Users ------------------------ //TODO Put all of this into a class.
$users_total= 0;
$users_total= $sql->count("user","(*)", "WHERE user_ban = 0");
$query = "SELECT u.*, ue.* FROM `#user` AS u LEFT JOIN `#user_extended` AS ue ON u.user_id = ue.user_extended_id WHERE u.user_ban = 0 ORDER BY u.user_id ".$order." LIMIT ".intval($from).",".intval($records);
if (!$data = $sql->retrieve($query,true))
@ -252,7 +252,6 @@ if (isset($id))
}
else
{
$users_total = count($data);
// $userList = $sql->db_getList();
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);