diff --git a/modules/lifepod/conf/info.xml b/modules/lifepod/conf/info.xml index 75255bf2c..7a22abf9b 100644 --- a/modules/lifepod/conf/info.xml +++ b/modules/lifepod/conf/info.xml @@ -1,5 +1,5 @@ - + 라이프팟 연동 Lifepod Lifepod連動 diff --git a/modules/lifepod/lifepod.view.php b/modules/lifepod/lifepod.view.php index b38da4b75..8c61da5da 100644 --- a/modules/lifepod/lifepod.view.php +++ b/modules/lifepod/lifepod.view.php @@ -50,29 +50,29 @@ $cDay = Context::get('day'); $calendars = array(); - - foreach($caladdresses as $key => $val) + + foreach($caladdresses as $key=>$val) { $page = $oLifepodModel->getPage($val, $cYear, $cMonth, $cDay); - foreach ($page->data as $key => $val) + for($j=0;$jdata);$j++) { - if($val->childNodes["date-start"]) + $data = &$page->data[$j]; + if($data->childNodes["date-start"]) { - $val->childNodes["date-start"]->body = $this->dateFormatChange($val->childNodes["date-start"]->body); + $data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body); } - if($val->childNodes["date-end"]) + if($data->childNodes["date-end"]) { $plus = 0; - if($val->childNodes["type"]->body == "daylong") + if($data->childNodes["type"]->body == "daylong") $plus = -1; - $val->childNodes["date-end"]->body = $this->dateFormatChange($val->childNodes["date-end"]->body, $plus); + $data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus); } - $val->childNodes["description"]->body = str_replace("\n", "
", $val->childNodes["description"]->body); + $data->childNodes["description"]->body = str_replace("\n", "
", $data->childNodes["description"]->body); } $calendars[] = $page; - } Context::set('calendars', $calendars);