From 69ab7509b1397164d476d41a12665de34fdd0536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 1 Jun 2020 16:33:30 +0800 Subject: [PATCH] fix --- .../tpmanage/controllers/webgetbokun.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/application/third_party/tpmanage/controllers/webgetbokun.php b/application/third_party/tpmanage/controllers/webgetbokun.php index 902dc81b..7458652b 100644 --- a/application/third_party/tpmanage/controllers/webgetbokun.php +++ b/application/third_party/tpmanage/controllers/webgetbokun.php @@ -83,8 +83,12 @@ class webgetbokun extends CI_Controller $strContent = ""; foreach ($arrContent as $ContentItem) { $strTemp = ""; + $strDay = ""; + if ($ContentItem->day!=1){ + $strDay = "(day ".$ContentItem->day.")"; + } if ($ContentItem->title != "") { - $strTemp .= "

" . $ContentItem->title . "

"; + $strTemp .= "

" . $ContentItem->title.$strDay. "

"; } if ($ContentItem->body != "") { $strTemp .= $ContentItem->body; @@ -241,7 +245,9 @@ class webgetbokun extends CI_Controller if ($agendaItem->keyPhoto != null && $agendaItem->keyPhoto != "") { $this->InfoBokunData_model->ibd_ItemName = "AgendaPhoto"; $this->InfoBokunData_model->ibd_Itemvalue = $agendaItem->keyPhoto->originalUrl; - $this->InfoBokunData_model->ibd_ItemDescription = $$agendaItem->keyPhoto->description; + if (isset($$agendaItem->keyPhoto->description)){ + $this->InfoBokunData_model->ibd_ItemDescription = $$agendaItem->keyPhoto->description; + } $this->InfoBokunData_model->ibd_ItemType = "originalUrl"; $this->InfoBokunData_model->Add(); } @@ -254,7 +260,10 @@ class webgetbokun extends CI_Controller $this->InfoBokunData_model->ibd_ItemName = "AgendaPhoto"; $this->InfoBokunData_model->ibd_Itemvalue = $agendaPhotoItem->originalUrl; $this->InfoBokunData_model->ibd_ItemType = "originalUrl"; - $this->InfoBokunData_model->ibd_ItemDescription = $agendaPhotoItem->description; + if (isset($agendaPhotoItem->description)){ + $this->InfoBokunData_model->ibd_ItemDescription = $agendaPhotoItem->description; + } + $this->InfoBokunData_model->Add(); } }