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

Changeset 6653


Ignore:
Timestamp:
Apr 19, 2008, 3:55:20 PM (14 years ago)
Author:
ebihara
Message:

#2269:日記コメント記入履歴件数の計算が正しくなかったのを修正(thanks to toraneko)

File:
1 edited

Legend:

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

    r6642 r6653  
    573573
    574574    foreach ($list as $key => $value) {
    575         $list[$key] += db_member_c_member4c_member_id_LIGHT($value['c_member_id']);
    576575        $diary = db_diary_get_c_diary4id($value['c_diary_id']);
     576        $list[$key] += db_member_c_member4c_member_id_LIGHT($diary['c_member_id']);
    577577        $list[$key]['subject'] = $diary['subject'];
    578578        $list[$key]['num_comment'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
    579579    }
    580580
    581     $sql = 'SELECT c_diary_id' .
     581    $sql = 'SELECT COUNT(c_diary_id)' .
    582582           ' FROM c_diary_comment_log' .
    583583           ' WHERE c_member_id = ?';
Note: See TracChangeset for help on using the changeset viewer.