From dbca27022bbaa4b67b75529ed9e8536a10b00dd1 Mon Sep 17 00:00:00 2001 From: lmrwork <59361885@qq.com> Date: Thu, 21 Jun 2018 12:06:39 +0800 Subject: [PATCH] amp_check fix head --- application/controllers/tools.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/tools.php b/application/controllers/tools.php index 723c8d44..12741419 100644 --- a/application/controllers/tools.php +++ b/application/controllers/tools.php @@ -65,6 +65,7 @@ class Tools extends CI_Controller public function amp_check() { $data['amp'] = $this->input->get_post('amp'); + if (!$data['amp']) $data['amp'] = 'yes'; //AMP转化列表 if ($data['amp'] == 'yes') { $data['info'] = $this->InfoMetas_model->list_amp($this->site_code);