Userlist fix for Joomla 1.6
(Joomla 1.0 and 1.5 users must not install this fix)
In userlist.php line 315+ replace the existing lines with these ones:
Code:
default: // none
$sql="SELECT u.id,u.name,u.username FROM #__users AS u WHERE u.block=0 ".$temp."ORDER BY u.".($config->realnames ? "name" : "username");
break;
}
if (uddeIMisAdmin($my_gid)) // do not hide users when it is an admin
$sql="SELECT u.id,u.name,u.username FROM #__users AS u WHERE u.block=0 ".$temp."ORDER BY u.".($config->realnames ? "name" : "username");
You have to replace two existing SQL queries with these ones (please not the "u." in the query).