summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--privatemsg_roles/privatemsg_roles.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/privatemsg_roles/privatemsg_roles.module b/privatemsg_roles/privatemsg_roles.module
index 47d6b27..f0bfe7f 100644
--- a/privatemsg_roles/privatemsg_roles.module
+++ b/privatemsg_roles/privatemsg_roles.module
@@ -84,7 +84,7 @@ function theme_privatemsg_roles_format($variables) {
function privatemsg_roles_load_recipients($recipient, $limit, $offset) {
$rid = isset($recipient->recipient) ? $recipient->recipient : $recipient->rid;
if ($rid == DRUPAL_AUTHENTICATED_RID) {
- $result = db_query_range('SELECT uid FROM {users} ORDER BY uid ASC', $offset, $limit);
+ $result = db_query_range('SELECT uid FROM {users} WHERE uid > 0 ORDER BY uid ASC', $offset, $limit);
}
else {
$result = db_query_range('SELECT uid FROM {users_roles} WHERE rid = :rid ORDER BY uid ASC', $offset, $limit, array(':rid' => $rid));