diff --git a/webapp/controller/MissionController.class.php b/webapp/controller/MissionController.class.php index de2af0f7..5c086b1c 100644 --- a/webapp/controller/MissionController.class.php +++ b/webapp/controller/MissionController.class.php @@ -1,5 +1,6 @@ _rspData(array( 'current_active_value' => $this->_getV(TN_ACTIVE, 0), - 'max_active_value' => 0, + 'max_active_value' => mt\Parameter::getVal('max_activity', 0), 'mission_list1' => $missionDtoList1, 'mission_list2' => $missionDtoList2 )); diff --git a/webapp/models/DynData.php b/webapp/models/DynData.php index 5f71a89b..1aa4d4d5 100644 --- a/webapp/models/DynData.php +++ b/webapp/models/DynData.php @@ -160,8 +160,8 @@ class DynData extends BaseModel { { $key = self::calcKey($x, $y); if (self::$dynData) { - if (isset($dynData[$key])) { - return $dynData[$key]; + if (isset(self::$dynData[$key])) { + return self::$dynData[$key]; } else { return array( 'val' => $defVal,