mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Bugfix: filter banned users from PM user list.
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/user_select_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/user_select_class.php,v $
|
||||||
| $Revision: 1.5 $
|
| $Revision: 1.6 $
|
||||||
| $Date: 2009-07-19 11:44:28 $
|
| $Date: 2009-09-20 01:03:30 $
|
||||||
| $Author: marj_nl_fr $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ class user_select {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case e_UC_MEMBER:
|
case e_UC_MEMBER:
|
||||||
$where = "1";
|
$where = "user_ban != 1";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case e_UC_NOBODY:
|
case e_UC_NOBODY:
|
||||||
@@ -220,9 +220,11 @@ class user_select {
|
|||||||
echo "\n</body>\n</html>";
|
echo "\n</body>\n</html>";
|
||||||
}
|
}
|
||||||
|
|
||||||
function findusers($s) {
|
function findusers($s,$banned=FALSE) {
|
||||||
global $sql, $tp;
|
global $sql, $tp;
|
||||||
if ($sql->db_Select("user", "*", "user_name LIKE '%".$tp -> toDB($s)."%' ")) {
|
$inc = ($banned == FALSE) ? " AND user_ban != 1" : "";
|
||||||
|
if ($sql->db_Select("user", "*", "user_name LIKE '%".$tp -> toDB($s)."%'".$inc))
|
||||||
|
{
|
||||||
while ($row = $sql -> db_Fetch()) {
|
while ($row = $sql -> db_Fetch()) {
|
||||||
$ret[strtolower($row['user_name'])] = $row['user_name'];
|
$ret[strtolower($row['user_name'])] = $row['user_name'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user