From 7c35707f6ece9c323ea1c37dec84b797ae4f47ca Mon Sep 17 00:00:00 2001 From: bnu Date: Wed, 18 Dec 2013 11:30:42 +0900 Subject: [PATCH] =?UTF-8?q?NOISSUE=20PHP=20=EB=B2=84=EC=A0=84=20=ED=98=B8?= =?UTF-8?q?=ED=99=98=EC=84=B1=20=EA=B0=9C=EC=84=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/document/document.item.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 6e9b832c3..05c052ce0 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -110,7 +110,10 @@ class documentItem extends Object { $tags = explode(',',$this->get('tags')); $tag_count = count($tags); - for($i=0;$i<$tag_count;$i++) if(trim($tags[$i])) $tag_list[] = trim($tags[$i]); + for($i=0;$i<$tag_count;$i++) + { + if(trim($tags[$i])) $tag_list[] = trim($tags[$i]); + } $this->add('tag_list', $tag_list); } @@ -1050,6 +1053,7 @@ class documentItem extends Object function getTranslationLangCodes() { + $obj = new stdClass; $obj->document_srl = $this->document_srl; // -2 is an index for content. We are interested if content has other translations. $obj->var_idx = -2; @@ -1060,6 +1064,7 @@ class documentItem extends Object $output->data = array(); } // add original page's lang code as well + $origLangCode = new stdClass; $origLangCode->lang_code = $this->getLangCode(); $output->data[] = $origLangCode;