From 01cffa4289860c4dd300457ef63c3362e4f72bfa Mon Sep 17 00:00:00 2001 From: Zhai Yiming Date: Thu, 13 Jul 2017 18:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=88=AC=E8=99=AB=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Access_UA.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Access_UA.php b/Access_UA.php index 3827f7c..9daa84f 100644 --- a/Access_UA.php +++ b/Access_UA.php @@ -112,10 +112,10 @@ class Access_UA $this->robotVersion = $val; } } - $this->robotID = $this->robotName = ''; - } else { - $this->robotID = $this->robotName = ''; } + if ($this->robotID == null) $this->robotID = ''; + if ($this->robotName == null) $this->robotName = ''; + if ($this->robotVersion == null) $this->robotVersion = ''; } return $this->robotID !== '' || $this->robotName !== ''; }