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

Changeset 8256


Ignore:
Timestamp:
Sep 9, 2008, 2:27:49 AM (12 years ago)
Author:
ogawa
Message:

#2931:エラーチェックを確実にSlavePNE以外を対象とするよう変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/h_config_3.php

    r8249 r8256  
    3030        $is_shinobiashi = $requests['is_shinobiashi'];
    3131        $schedule_start_day = $requests['schedule_start_day'];
     32        $c_password_query_id = $requests['c_password_query_id'];
     33        $c_password_query_answer = $requests['c_password_query_answer'];
    3234        // ----------
    3335
    3436        $c_member = db_member_c_member4c_member_id($u);
     37
     38        $error_messages = array();
    3539
    3640        if (IS_SLAVEPNE) {
     
    3842            $c_password_query_answer = '';
    3943        } else {
    40             if (!$c_member['c_password_query_id'] && !strlen($requests['c_password_query_answer'])) {
    41                 $c_password_query_id = 0;
    42             } else {
    43                 $c_password_query_id = $requests['c_password_query_id'];
    44             }
    45             $c_password_query_answer = $requests['c_password_query_answer'];
    46         }
    47 
    48         $error_messages = array();
    49 
    50         if ($c_password_query_id && $c_password_query_id != $c_member['c_password_query_id']) {
    51             if (!strlen($c_password_query_answer)) {
    52                 $error_messages[] = '秘密の質問の答えを入力してください。';
     44            if (!strlen($requests['c_password_query_answer'])) {
     45                if (!$c_member['c_password_query_id']) {
     46                    $c_password_query_id = 0;
     47                } else {
     48                    if ($c_password_query_id != $c_member['c_password_query_id']) {
     49                        $error_messages[] = '秘密の質問の答えを入力してください。';
     50                    }
     51                }
    5352            }
    5453        }
Note: See TracChangeset for help on using the changeset viewer.