summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-10-12 20:12:11 +0000
committerDries Buytaert <dries@buytaert.net>2006-10-12 20:12:11 +0000
commit2b4a7762ea93c5b7d4a12e61e2bd6cb05d73b61a (patch)
treef12641a28be8468a53537b529224c14eaba85eac
parente9121fb3abed6952182f1ec3819289a3840556fa (diff)
downloadbrdo-2b4a7762ea93c5b7d4a12e61e2bd6cb05d73b61a.tar.gz
brdo-2b4a7762ea93c5b7d4a12e61e2bd6cb05d73b61a.tar.bz2
- Patch #87540 by MikalH: don't show blocked users on profile pages.
-rw-r--r--modules/profile/profile.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index a96b4629e..2e2e48b0b 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -466,7 +466,7 @@ function profile_browse() {
}
// Extract the affected users:
- $result = pager_query("SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d AND $query ORDER BY u.access DESC", 20, 0, NULL, $arguments);
+ $result = pager_query('SELECT u.uid, u.access FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d AND $query AND u.access != 0 AND u.status != 0 ORDER BY u.access DESC', 20, 0, NULL, $arguments);
$output = '<div id="profile">';
while ($account = db_fetch_object($result)) {
@@ -499,7 +499,7 @@ function profile_browse() {
}
// Extract the affected users:
- $result = pager_query("SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 ORDER BY access DESC", 20, 0, NULL);
+ $result = pager_query('SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 AND access != 0 ORDER BY access DESC', 20, 0, NULL);
$output = '<div id="profile">';
while ($account = db_fetch_object($result)) {