From 155aff37d730b12a16e379530ed5706cb91bdc01 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Fri, 13 Jan 2006 15:54:05 +0000 Subject: [PATCH] - Patch #44490 by darius: don't show blocked users on the profile pages. --- modules/profile.module | 2 +- modules/profile/profile.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/profile.module b/modules/profile.module index 280c5c0cc693..678bbcaddad0 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -213,7 +213,7 @@ function profile_browse() { } // Extract the affected users: - $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 ORDER BY access DESC", 20, 0, NULL); + $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 ORDER BY access DESC", 20, 0, NULL); $output = '<div id="profile">'; while ($account = db_fetch_object($result)) { diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 280c5c0cc693..678bbcaddad0 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -213,7 +213,7 @@ function profile_browse() { } // Extract the affected users: - $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 ORDER BY access DESC", 20, 0, NULL); + $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 ORDER BY access DESC", 20, 0, NULL); $output = '<div id="profile">'; while ($account = db_fetch_object($result)) { -- GitLab