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

Changeset 2945


Ignore:
Timestamp:
May 17, 2007, 4:35:25 PM (12 years ago)
Author:
ebihara
Message:

#727:他人の非公開TodoをTodo投稿履歴に表示していたバグの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp_biz/modules/biz/lib/mysql_functions.php

    r2941 r2945  
    756756
    757757    if ($limit) {
    758         $list = db_get_all_limit($sql, 0, intval($limit), $params);
     758        $tmp = db_get_all_limit($sql, 0, intval($limit), $params);
    759759    } else {
    760         $list = db_get_all($sql, $params);
    761     }
    762 
    763     foreach ($list as $key => $value) {
     760        $tmp = db_get_all($sql, $params);
     761    }
     762
     763    $list = array();
     764    foreach ($tmp as $key => $value) {
     765        if (!biz_isPermissionTodo($id, $value['biz_todo_id'])) {
     766            continue;
     767        }
     768        $list[$key] = $value;
    764769        $sql = 'SELECT nickname FROM c_member WHERE c_member_id = ?';
    765770        $params = array(
Note: See TracChangeset for help on using the changeset viewer.