From 11cfe65363d346f3049b3e6e137a74965e509806 Mon Sep 17 00:00:00 2001 From: cyc Date: Mon, 29 Oct 2018 09:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=93=E5=AD=98=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E6=97=B6=E7=9A=84=E8=BD=AC=E6=8D=A2=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/train/controllers/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/third_party/train/controllers/search.php b/application/third_party/train/controllers/search.php index 0e217f82..1563caa7 100644 --- a/application/third_party/train/controllers/search.php +++ b/application/third_party/train/controllers/search.php @@ -438,7 +438,7 @@ class search extends CI_Controller{ function ticket_exchange($price,$num){ //echo $this->can_buy_now; if($this->cache == 'yes' || $this->seveth == 'yes'){ - if(isset($price)){ + if(isset($price) && is_numeric($num)){ if($price > 0){ return '有'; }else{