修复PHP array语法错误

hotfix/远程访问多媒体中心
LiaoYijun 8 years ago
parent a04f3522c5
commit 4bb99e15ff

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

Loading…
Cancel
Save