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{