Changeset 1065 in ExiteCMS for branches/PLi-Fusion/pm.php


Ignore:
Timestamp:
11/05/07 22:23:47 (5 years ago)
Author:
hverton
Message:

Merged trunk revision 1056:1064 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/pm.php

    r953 r1065  
    903903    if ($action == "post" || $action == "forward") { 
    904904        $variables['user_list'] = array(); 
    905         $result = dbquery("SELECT u.user_id, u.user_name FROM ".$db_prefix."users u ORDER BY user_level DESC, user_name ASC"); 
     905        $result = dbquery("SELECT u.user_id, u.user_name FROM ".$db_prefix."users u WHERE user_status = 0 ORDER BY user_level DESC, user_name ASC"); 
    906906        while ($data = dbarray($result)) { 
    907             // only other users (can send a PM to yourself), skip the user_id passed to us (from a PM button p.e.) 
     907            // only other users (can't send a PM to yourself), skip the user_id passed to us (from a PM button p.e.) 
    908908            if ($data['user_id'] != $userdata['user_id'] && $data['user_id'] != $user_id) { 
    909909                $variables['user_list'][] = $data; 
Note: See TracChangeset for help on using the changeset viewer.