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

Changeset 3027


Ignore:
Timestamp:
May 18, 2007, 11:34:32 PM (12 years ago)
Author:
ogawa
Message:

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

File:
1 edited

Legend:

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

    r2951 r3027  
    10771077    foreach($list as $key => $value) {
    10781078        if ($value['target_c_commu_id']) {
    1079             $c_commu = db_commu_c_commu4c_commu_id($value['target_c_commu_id']);
    1080             $return[] = array_merge($value, $c_commu);
    1081             $sum += $value['count'];
     1079            if ($c_commu = db_commu_c_commu4c_commu_id($value['target_c_commu_id'])) {
     1080                $return[] = array_merge($value, $c_commu);
     1081                $sum += $value['count'];
     1082            }
    10821083        }
    10831084    }
     
    11591160    foreach ($list as $key => $value) {
    11601161        if ($value['target_c_commu_topic_id']) {
    1161             $c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id']);
    1162             $c_commu_topic['topic_name'] = $c_commu_topic['name'];
    1163             $c_commu = db_commu_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
    1164             $c_commu_topic['commu_name'] = $c_commu['name'];
    1165             $return[] = array_merge($value, $c_commu_topic);
    1166             $sum += $value['count'];
     1162            if ($c_commu_topic = c_topic_detail_c_topic4c_commu_topic_id($value['target_c_commu_topic_id'])) {
     1163                $c_commu_topic['topic_name'] = $c_commu_topic['name'];
     1164                $c_commu = db_commu_c_commu4c_commu_id($c_commu_topic['c_commu_id']);
     1165                $c_commu_topic['commu_name'] = $c_commu['name'];
     1166                $return[] = array_merge($value, $c_commu_topic);
     1167                $sum += $value['count'];
     1168            }
    11671169        }
    11681170    }
     
    12241226    foreach ($list as $key => $value) {
    12251227        if ($value['target_c_diary_id']) {
    1226             $c_diary = db_diary_get_c_diary4id($value['target_c_diary_id']);
    1227             $c_member = db_member_c_member4c_member_id($c_diary['c_member_id']);
    1228             $c_diary['nickname'] = $c_member['nickname'];
    1229             $return[] = array_merge($value, $c_diary);
    1230             $sum += $value['count'];
     1228            if ($c_diary = db_diary_get_c_diary4id($value['target_c_diary_id'])) {
     1229                $c_member = db_member_c_member4c_member_id($c_diary['c_member_id']);
     1230                $c_diary['nickname'] = $c_member['nickname'];
     1231                $return[] = array_merge($value, $c_diary);
     1232                $sum += $value['count'];
     1233            }
    12311234        }
    12321235    }
     
    13061309    foreach($list as $key => $value) {
    13071310        if ($value['c_member_id']) {
    1308             $c_member = _db_c_member4c_member_id($value['c_member_id']);
    1309             $return[] = array_merge($value, $c_member);
    1310             $sum += $value['count'];
     1311            if ($c_member = _db_c_member4c_member_id($value['c_member_id'])) {
     1312                $return[] = array_merge($value, $c_member);
     1313                $sum += $value['count'];
     1314            }
    13111315        }
    13121316    }
     
    13691373    foreach($list as $key => $value) {
    13701374        if ($value['target_c_member_id']) {
    1371             $c_member = db_member_c_member4c_member_id($value['target_c_member_id']);
    1372             $return[] = array_merge($value, $c_member);
    1373             $sum += $value['count'];
     1375            if ($c_member = db_member_c_member4c_member_id($value['target_c_member_id'])) {
     1376                $return[] = array_merge($value, $c_member);
     1377                $sum += $value['count'];
     1378            }
    13741379        }
    13751380    }
Note: See TracChangeset for help on using the changeset viewer.