diff options
author | Andrey Andreev <narf@devilix.net> | 2016-07-19 13:36:20 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-07-19 13:36:20 +0200 |
commit | b01047570608a976d4721147bbb8710ffd674551 (patch) | |
tree | d7d777006d3a04f531fe037f59d3e5e8afe2a803 /system/libraries/User_agent.php | |
parent | fc6f444f74b54a3c7ff3c53ba7fdf83378a86bcc (diff) |
Fix #4695
Diffstat (limited to 'system/libraries/User_agent.php')
-rw-r--r-- | system/libraries/User_agent.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/system/libraries/User_agent.php b/system/libraries/User_agent.php index c4e11592d..60d159966 100644 --- a/system/libraries/User_agent.php +++ b/system/libraries/User_agent.php @@ -173,13 +173,11 @@ class CI_User_agent { */ public function __construct() { + $this->_load_agent_file(); + if (isset($_SERVER['HTTP_USER_AGENT'])) { $this->agent = trim($_SERVER['HTTP_USER_AGENT']); - } - - if ($this->agent !== NULL && $this->_load_agent_file()) - { $this->_compile_data(); } |