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 !== ''; }