diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-13 15:54:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-13 15:54:05 +0000 |
commit | 155aff37d730b12a16e379530ed5706cb91bdc01 (patch) | |
tree | b1a2d6880c8239cba800bdd5ca6d65c6a7562551 | |
parent | 403c1c0404a3cf8330d47460a7d0c5bbe3214bac (diff) | |
download | brdo-155aff37d730b12a16e379530ed5706cb91bdc01.tar.gz brdo-155aff37d730b12a16e379530ed5706cb91bdc01.tar.bz2 |
- Patch #44490 by darius: don't show blocked users on the profile pages.
-rw-r--r-- | modules/profile.module | 2 | ||||
-rw-r--r-- | modules/profile/profile.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile.module b/modules/profile.module index 280c5c0cc..678bbcadd 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 280c5c0cc..678bbcadd 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)) { |