ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2461 for OpenPNE


Ignore:
Timestamp:
Apr 6, 2007, 12:31:23 AM (13 years ago)
Author:
ebihara
Message:

予定編集時、参加者の表示がおかしかったのを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/kunitada/prj_2_6_X_biza/webapp_biz/modules/biz/page/fh_biz_schedule_edit.php

    r2291 r2461  
    195195        $members = array();
    196196
    197         $sql = 'SELECT c_member_id, nickname FROM c_member WHERE c_member_id <> ?';
    198 
    199         $params = array(
    200             intval($target_id),
    201         );
     197        $sql = 'SELECT c_member_id, nickname FROM c_member';
    202198        $members = db_get_all($sql, $params);
    203 
    204         $sql = 'SELECT c_member_id, nickname FROM c_member WHERE c_member_id = ?';
    205         $params = array(
    206             intval($target_id),
    207         );
    208         $my_info = db_get_row($sql, $params);
    209         array_unshift($members, $my_info);
    210199        $i = 0;
    211 
    212200        foreach ($members as $key => $value) {
    213             if ($j_members[$value['c_member_id']]) {
     201            if (in_array($value['c_member_id'], $j_members)) {
    214202                $members[$key]['checkflag'] = 1;
    215203                $i++;
     
    222210       
    223211        $this->set('members', $members);
    224        
     212
    225213        return 'success';
    226214    }
Note: See TracChangeset for help on using the changeset viewer.