예제 #1
0
             }
         } else {
             $list = $db->selectObject('inbox_contactlist', 'id=' . $gid);
             if ($list->owner == $user->id) {
                 foreach ($db->selectObjects('inbox_contactlist_member', 'list_id=' . $list->id) as $m) {
                     if (!in_array($u->id, $banned)) {
                         $recipients[] = $m->user_id;
                     }
                 }
             }
         }
     }
 }
 // remove duplicates
 $recipients = array_flip(array_flip($recipients));
 $message = privatemessage::update($_POST, null);
 if (trim($message->subject) == '') {
     $post = $_POST;
     unset($post['subject']);
     $post['_formError'] = $i18n['err_no_subject'];
     $post['recipients'] = $recipients;
     $post['group_recipients'] = $gr;
     exponent_sessions_set('last_POST', $post);
     header('Location: ' . $_SERVER['HTTP_REFERER']);
     exit;
 }
 if (count($recipients) == 0) {
     $post = $_POST;
     $post['_formError'] = $i18n['err_no_recipients'];
     $post['recipients'] = $recipients;
     $post['group_recipients'] = $gr;