Skip to content
Snippets Groups Projects
Commit 155aff37 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #44490 by darius: don't show blocked users on the profile pages.

parent 403c1c04
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -213,7 +213,7 @@ function profile_browse() { ...@@ -213,7 +213,7 @@ function profile_browse() {
} }
// Extract the affected users: // 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">'; $output = '<div id="profile">';
while ($account = db_fetch_object($result)) { while ($account = db_fetch_object($result)) {
......
...@@ -213,7 +213,7 @@ function profile_browse() { ...@@ -213,7 +213,7 @@ function profile_browse() {
} }
// Extract the affected users: // 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">'; $output = '<div id="profile">';
while ($account = db_fetch_object($result)) { while ($account = db_fetch_object($result)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment