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

Changeset 11164


Ignore:
Timestamp:
Mar 25, 2009, 6:46:31 PM (12 years ago)
Author:
nagasawa
Message:

#3723:削除対象メンバーのコメント削除部分が抜けていたのを修正

File:
1 edited

Legend:

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

    r11163 r11164  
    13381338    $sql = 'DELETE FROM c_diary WHERE c_member_id = ?';
    13391339    db_query($sql, $single);
     1340
     1341    // 対象メンバーのコメントをすべて削除
     1342    $sql = 'SELECT * FROM c_diary_comment WHERE c_member_id = ?';
     1343    $c_diary_comment_list = db_get_all($sql, $single, 'main');
     1344    foreach ($c_diary_comment_list as $c_diary_comment) {
     1345        db_image_data_delete($c_diary_comment['image_filename_1']);
     1346        db_image_data_delete($c_diary_comment['image_filename_2']);
     1347        db_image_data_delete($c_diary_comment['image_filename_3']);
     1348    }
     1349    $sql = 'DELETE FROM c_diary_comment WHERE c_member_id = ?';
     1350    db_query($sql, $single);
    13401351}
    13411352
Note: See TracChangeset for help on using the changeset viewer.