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) {