From 4bb99e15ff447c37f7542901fd13d09dcf484f9d Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 22 Jun 2017 17:01:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPHP=20array=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/welcome.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 7a2499f0..347f34b8 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -117,11 +117,11 @@ class Welcome extends CI_Controller { libxml_use_internal_errors(true); //$htm_doc->strictErrorChecking = false; if (empty($information->ic_content)) { - $this->echo_json(array[ + $this->echo_json(array( 'status' => 'error', 'infoId' => $info_id, 'message' => 'info content is empty' - ]); + )); return; } $htm_doc->loadHTML($information->ic_content); @@ -165,12 +165,12 @@ class Welcome extends CI_Controller { $information->ic_ht_product_type, $information->ic_author); - $this->echo_json(array[ + $this->echo_json(array( 'status' => 'ok', 'infoId' => $info_id, 'message' => 'success', 'date' => date('Y-m-d h:i:s') - ]); + )); } private function echo_json($obj) {