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

Changeset 8599


Ignore:
Timestamp:
Oct 7, 2008, 8:47:55 PM (11 years ago)
Author:
shingo
Message:

#2992:変数、使用関数を簡潔ものに変更

Location:
OpenPNE/branches/stable-2.12.x/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/lib/db/commu.php

    r8573 r8599  
    31093109         . ' WHERE c_commu_id = ?';
    31103110    $params = array(intval($c_commu_id));
    3111     $c_commu_member_confirm = db_get_all($sql, $params);
     3111    $c_commu_member_confirm = db_get_assoc($sql, $params, 'main');
    31123112
    31133113    return $c_commu_member_confirm;
  • OpenPNE/branches/stable-2.12.x/webapp/modules/pc/do/c_edit_update_c_commu.php

    r8584 r8599  
    6666        // 承認待ちメンバー登録処理
    6767        if ($public_flag == 'public' && $public_flag != $c_commu['public_flag']) {
    68             $c_commu_member_confirm_list = db_commu_c_commu_member_confirm4c_commu_id($target_c_commu_id);
    69             foreach ($c_commu_member_confirm_list as $c_commu_member_confirm) {
    70                 db_commu_join_c_commu($target_c_commu_id, $c_commu_member_confirm['c_member_id']);
    71                 do_inc_join_c_commu_send_mail($target_c_commu_id, $c_commu_member_confirm['c_member_id']);
    72                 db_commu_delete_c_commu_member_confirm($c_commu_member_confirm['c_commu_member_confirm_id']);
     68            $member_confirm_list = db_commu_c_commu_member_confirm4c_commu_id($target_c_commu_id);
     69            foreach ($member_confirm_list as $confirm_id => $c_member_id) {
     70                db_commu_join_c_commu($target_c_commu_id, $c_member_id);
     71                do_inc_join_c_commu_send_mail($target_c_commu_id, $c_member_id);
     72                db_commu_delete_c_commu_member_confirm($confirm_id);
    7373            }
    7474        }
Note: See TracChangeset for help on using the changeset viewer.