如果信息平台中为内容为空,则展示404

master
cyc 7 years ago
parent cb5b822daf
commit d3315b93a3

@ -40,7 +40,7 @@ class Information extends CI_Controller {
}
$data['detail'] = $this->Information_model->get_detail($url);
if ($data['detail'] === false) {
if ($data['detail'] === false || empty($data['detail']->ic_content)) {
send_404();
return false;
}

Loading…
Cancel
Save