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

Changeset 6479


Ignore:
Timestamp:
Apr 9, 2008, 10:22:09 PM (12 years ago)
Author:
ebihara
Message:

#2180:optionid->option_id

File:
1 edited

Legend:

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

    r6475 r6479  
    19801980 * @return bool
    19811981 */
    1982 function db_member_c_member_config4optionid($c_member_id,$c_member_config_option_id)
     1982function db_member_c_member_config4option_id($c_member_id,$c_member_config_option_id)
    19831983{
    19841984    $sql = 'SELECT COUNT(c_member_config_id) FROM c_member_config'
     
    20142014function db_member_update_c_member_config($c_member_id, $name, $value)
    20152015{
    2016     $optionid = db_member_config_option_id4name($name);
    2017 
    2018     if (!db_member_c_member_config4optionid($c_member_id, $optionid)) {
     2016    $option_id = db_member_config_option_id4name($name);
     2017
     2018    if (!db_member_c_member_config4option_id($c_member_id, $option_id)) {
    20192019        $data = array(
    20202020            'c_member_id' => intval($c_member_id),
    2021             'c_member_config_option_id' => intval($optionid),
     2021            'c_member_config_option_id' => intval($option_id),
    20222022            'value' => $value,
    20232023        );
     
    20272027        $where = array(
    20282028            'c_member_id' => intval($c_member_id),
    2029             'c_member_config_option_id' => intval($optionid),
     2029            'c_member_config_option_id' => intval($option_id),
    20302030        );
    20312031        db_update('c_member_config', $data, $where);
Note: See TracChangeset for help on using the changeset viewer.