mirror of
https://github.com/e107inc/e107.git
synced 2025-06-05 18:35:01 +02:00
Fix for user pagination
This commit is contained in:
parent
811201ad5e
commit
6ab9f32f07
3
user.php
3
user.php
@ -241,7 +241,7 @@ if (isset($id))
|
|||||||
|
|
||||||
// --------------------- List Users ------------------------ //TODO Put all of this into a class.
|
// --------------------- 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);
|
$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))
|
if (!$data = $sql->retrieve($query,true))
|
||||||
@ -252,7 +252,6 @@ if (isset($id))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$users_total = count($data);
|
|
||||||
// $userList = $sql->db_getList();
|
// $userList = $sql->db_getList();
|
||||||
|
|
||||||
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
|
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user