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

Changeset 2535


Ignore:
Timestamp:
Apr 10, 2007, 10:03:44 PM (12 years ago)
Author:
takanashi
Message:

#582:INFORMATION欄への新着メッセージ通知用関数のfunction cacheを削除する際、引数がint型とstring型だったケースの両方に対応するように

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2_8/webapp/lib/db/message.php

    r1856 r2535  
    550550        'c_member_id_to' => intval($c_member_id),
    551551    );
    552     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id);
     552    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id);
     553    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id);
    553554    return db_update('c_message', $data, $where);
    554555}
     
    579580    do_common_send_message_mail_send($c_member_id_to, $c_member_id_from);
    580581    do_common_send_message_mail_send_ktai($c_member_id_to, $c_member_id_from);
    581     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
     582    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     583    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
    582584
    583585    return $c_message_id;
     
    589591    //メッセージ
    590592    db_message_insert_c_message_syoudaku($c_member_id_from, $c_member_id_to, $subject, $body);
    591     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
     593    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     594    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
    592595
    593596    do_common_send_message_syoudaku_mail_send($c_member_id_to, $c_member_id_from);
     
    599602    //メッセージ
    600603    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
    601     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
     604    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     605    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
    602606
    603607    do_common_send_message_syoukai_commu_mail_send($c_member_id_to, $c_member_id_from);
     
    609613    //メッセージ
    610614    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
    611     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
     615    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     616    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
    612617
    613618    do_common_send_message_syoukai_member_mail_send($c_member_id_to, $c_member_id_from);
     
    619624    //メッセージ
    620625    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
    621     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
     626    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     627    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
    622628
    623629    do_common_send_message_event_invite_mail_send($c_member_id_to, $c_member_id_from);
     
    629635    //メッセージ
    630636    db_message_insert_c_message($c_member_id_from, $c_member_id_to, $subject, $body);
    631     pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', $c_member_id_to);
     637    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (int)$c_member_id_to);
     638    pne_cache_drop('db_message_count_c_message_not_is_read4c_member_to_id', (string)$c_member_id_to);
    632639
    633640    do_common_send_message_event_message_mail_send($c_member_id_to, $c_member_id_from);
Note: See TracChangeset for help on using the changeset viewer.