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

Changeset 6456


Ignore:
Timestamp:
Apr 9, 2008, 7:20:11 PM (12 years ago)
Author:
ebihara
Message:

#2180:PEARコーディング規約に適合する形にコードを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/member.php

    r6447 r6456  
    19641964         . ' WHERE c_member_id = ?';
    19651965    $params = array(intval($c_member_id));
    1966     $list = db_get_all($sql,$params);
     1966    $list = db_get_all($sql, $params);
    19671967
    19681968    $member_config = array();
     
    19841984    $sql = 'SELECT COUNT(c_member_config_id) FROM c_member_config'
    19851985         . ' WHERE c_member_id = ? AND c_member_config_option_id = ?';
    1986     $params = array(intval($c_member_id),intval($c_member_config_option_id));
     1986    $params = array(
     1987        intval($c_member_id),
     1988        intval($c_member_config_option_id),
     1989    );
    19871990    return (bool)db_get_one($sql, $params, 'main');
    19881991}
     
    19992002         . ' WHERE name = ?';
    20002003    $params = array(strval($name));
    2001     return db_get_one($sql,$params);   
     2004    return db_get_one($sql, $params);   
    20022005}
    20032006
     
    20132016    $optionid = db_member_config_option_id4name($name);
    20142017
    2015     if (!db_member_c_member_config4optionid($c_member_id,$optionid)){
    2016         $data = array('c_member_id' => intval($c_member_id),
    2017                   'c_member_config_option_id' => intval($optionid),
    2018                   'value' => intval($value));
     2018    if (!db_member_c_member_config4optionid($c_member_id, $optionid)) {
     2019        $data = array(
     2020            'c_member_id' => intval($c_member_id),
     2021            'c_member_config_option_id' => intval($optionid),
     2022            'value' => intval($value),
     2023        );
    20192024        db_insert('c_member_config', $data);
    20202025    } else {
    20212026        $data = array('value' => intval($value));
    2022         $where = array('c_member_id'=>intval($c_member_id),
    2023                        'c_member_config_option_id' => intval($optionid));
     2027        $where = array(
     2028            'c_member_id' => intval($c_member_id),
     2029            'c_member_config_option_id' => intval($optionid),
     2030        );
    20242031        db_update('c_member_config', $data, $where);
    20252032    }
Note: See TracChangeset for help on using the changeset viewer.