From b504ce584f92fb12056b49a7a2247fe8cffbe4c3 Mon Sep 17 00:00:00 2001 From: "altob.rd" Date: Mon, 16 Oct 2017 16:00:34 +0800 Subject: [PATCH] wtf --- controllers/Pks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/Pks.php b/controllers/Pks.php index f580951..e8e83a3 100644 --- a/controllers/Pks.php +++ b/controllers/Pks.php @@ -201,10 +201,10 @@ class Pks extends CI_Controller $parms = $this->uri->uri_to_assoc(3); // 調整 pksno 為 pks 格式 - if (strpos($test_string, 'B') !== false) - $parms['pksno'] = '9' . intval(preg_replace('/[^0-9\-]/', '', $test_string)); // 地下 B + if (strpos($parms['pksno'], 'B') !== false) + $parms['pksno'] = '9' . intval(preg_replace('/[^0-9\-]/', '', $parms['pksno'])); // 地下 B else - $parms['pksno'] = intval(preg_replace('/[^0-9\-]/', '', $test_string)); + $parms['pksno'] = intval(preg_replace('/[^0-9\-]/', '', $parms['pksno'])); trigger_error('在席參數傳入:'.print_r($parms, true));