diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index e205b625..583c899b 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -24,7 +24,7 @@ class Info_amp extends CI_Controller $json = $this->input->get_post('json'); $html = $this->input->get_post('html'); $pc_html = $this->input->post('pc_html'); - if ($pc_html) echo $pc_html;; + //if ($pc_html) echo $pc_html; $css = $this->input->get_post('css'); $schema = $this->input->get_post('schema'); $script = $this->input->get_post('script'); @@ -40,7 +40,7 @@ class Info_amp extends CI_Controller } //pc_html $meta = $this->InfoMetas_model->get($icid, 'AMP_BODY_PC'); - if ($meta === false) { + if (empty($meta)) { $this->InfoMetas_model->add($icid, 'AMP_BODY_PC', $pc_html); } else { $this->InfoMetas_model->update($icid, 'AMP_BODY_PC', $pc_html);