commit | b01047570608a976d4721147bbb8710ffd674551 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Tue Jul 19 14:36:20 2016 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Tue Jul 19 14:36:20 2016 +0300 |
tree | d7d777006d3a04f531fe037f59d3e5e8afe2a803 | |
parent | fc6f444f74b54a3c7ff3c53ba7fdf83378a86bcc [diff] [blame] |
Fix #4695
diff --git a/system/libraries/User_agent.php b/system/libraries/User_agent.php index c4e1159..60d1599 100644 --- a/system/libraries/User_agent.php +++ b/system/libraries/User_agent.php
@@ -173,13 +173,11 @@ */ 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(); }