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

Changeset 3028


Ignore:
Timestamp:
May 18, 2007, 11:35:36 PM (13 years ago)
Author:
ogawa
Message:

#820:管理画面のアクセス月次集計ページでエラーが表示される

File:
1 edited

Legend:

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

    r2793 r3028  
    922922    foreach($list as $key => $value) {
    923923        if ($value['target_c_commu_id']) {
    924             $c_commu = db_commu_c_commu4c_commu_id($value['target_c_commu_id']);
    925             $return[] = array_merge($value, $c_commu);
    926             $sum += $value['count'];
     924            if ($c_commu = db_commu_c_commu4c_commu_id($value['target_c_commu_id'])) {
     925                $return[] = array_merge($value, $c_commu);
     926                $sum += $value['count'];
     927            }
    927928        }
    928929    }
     
    10041005    foreach ($list as $key => $value) {
    10051006        if ($value['target_c_commu_topic_id']) {
    1006             $c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id']);
    1007             $c_commu_topic['topic_name'] = $c_commu_topic['name'];
    1008             $c_commu = db_commu_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
    1009             $c_commu_topic['commu_name'] = $c_commu['name'];
    1010             $return[] = array_merge($value, $c_commu_topic);
    1011             $sum += $value['count'];
     1007            if ($c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id'])) {
     1008                $c_commu_topic['topic_name'] = $c_commu_topic['name'];
     1009                $c_commu = db_commu_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
     1010                $c_commu_topic['commu_name'] = $c_commu['name'];
     1011                $return[] = array_merge($value, $c_commu_topic);
     1012                $sum += $value['count'];
     1013            }
    10121014        }
    10131015    }
     
    10691071    foreach ($list as $key => $value) {
    10701072        if ($value['target_c_diary_id']) {
    1071             $c_diary = db_diary_get_c_diary4id($value['target_c_diary_id']);
    1072             $c_member = db_member_c_member4c_member_id($c_diary['c_member_id']);
    1073             $c_diary['nickname'] = $c_member['nickname'];
    1074             $return[] = array_merge($value, $c_diary);
    1075             $sum += $value['count'];
     1073            if ($c_diary = db_diary_get_c_diary4id($value['target_c_diary_id'])) {
     1074                $c_member = db_member_c_member4c_member_id($c_diary['c_member_id']);
     1075                $c_diary['nickname'] = $c_member['nickname'];
     1076                $return[] = array_merge($value, $c_diary);
     1077                $sum += $value['count'];
     1078            }
    10761079        }
    10771080    }
     
    11511154    foreach($list as $key => $value) {
    11521155        if ($value['c_member_id']) {
    1153             $c_member = _db_c_member4c_member_id($value['c_member_id']);
    1154             $return[] = array_merge($value, $c_member);
    1155             $sum += $value['count'];
     1156            if ($c_member = _db_c_member4c_member_id($value['c_member_id'])) {
     1157                $return[] = array_merge($value, $c_member);
     1158                $sum += $value['count'];
     1159            }
    11561160        }
    11571161    }
     
    12141218    foreach($list as $key => $value) {
    12151219        if ($value['target_c_member_id']) {
    1216             $c_member = db_member_c_member4c_member_id($value['target_c_member_id']);
    1217             $return[] = array_merge($value, $c_member);
    1218             $sum += $value['count'];
     1220            if ($c_member = db_member_c_member4c_member_id($value['target_c_member_id'])) {
     1221                $return[] = array_merge($value, $c_member);
     1222                $sum += $value['count'];
     1223            }
    12191224        }
    12201225    }
Note: See TracChangeset for help on using the changeset viewer.