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

Changeset 3660


Ignore:
Timestamp:
Aug 9, 2007, 4:45:36 PM (12 years ago)
Author:
ogawa
Message:

#957:admin:世代別メンバー表示で、誕生日を迎えたユーザの世代が更新されない

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.6.x/webapp/modules/admin/lib/db_admin.php

    r3528 r3660  
    14031403   
    14041404    $today = getdate();
    1405     $cur = $today['mon']*100 + $today['mday'];
    1406     $sql = "SELECT ((YEAR(CURDATE()) - birth_year) " .
    1407         "- ( ? < (birth_month*100 + birth_day))) " .
    1408         "AS age FROM c_member WHERE birth_year <> 0;";
    1409     $lst = db_get_all($sql, array($cur));
     1405    $mmdd = $today['mon'] * 100 + $today['mday'];
     1406    $sql = 'SELECT ' . $today['year'] . ' - birth_year'
     1407         . ' - (' . $mmdd . ' < (birth_month * 100 + birth_day))'
     1408         . ' AS age FROM c_member WHERE birth_year <> 0';
     1409    $lst = db_get_all($sql);
    14101410
    14111411    $temp = array_keys($analysis_generation);
Note: See TracChangeset for help on using the changeset viewer.