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

Ignore:
Timestamp:
Sep 28, 2006, 7:20:16 PM (14 years ago)
Author:
ogawa
Message:

CS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/admin/lib/db_admin.php

    r276 r284  
    563563    $ids = _db_admin_c_member_id_list($cond_list);
    564564    $total_num = count($ids);
    565     $ids = array_slice( $ids, ($page - 1)*$page_size, $page_size);
     565    $ids = array_slice($ids, ($page - 1) * $page_size, $page_size);
    566566
    567567    $c_member_list = array();
     
    579579function db_c_profile_option4c_profile_option_id($c_profile_option_id)
    580580{
    581     $sql = "SELECT * FROM c_profile_option" .
    582             " WHERE c_profile_option_id = ? ";
    583 
    584     return db_get_row($sql,array($c_profile_option_id));
     581    $sql = "SELECT * FROM c_profile_option WHERE c_profile_option_id = ? ";
     582    $params = array(intval($c_profile_option_id));
     583    return db_get_row($sql, $params);
    585584}
    586585
     
    592591    $cond_list = array();
    593592    //誕生年
    594     if ( !empty($requests['s_year']) ) {
     593    if (!empty($requests['s_year'])) {
    595594        $cond_list['s_year'] = intval($requests['s_year']);
    596595    }
    597     if ( !empty($requests['e_year']) ) {
     596    if (!empty($requests['e_year'])) {
    598597        $cond_list['e_year'] = intval($requests['e_year']);
    599598    }
     
    602601
    603602    foreach ($profile_list as $key => $value) {
    604         if ( !empty($requests[$key]) ) {
     603        if (!empty($requests[$key])) {
    605604            $cond_list[$key] = intval($requests[$key]);
    606605        }
Note: See TracChangeset for help on using the changeset viewer.