summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-07-19 13:36:20 +0200
committerAndrey Andreev <narf@devilix.net>2016-07-19 13:36:20 +0200
commitb01047570608a976d4721147bbb8710ffd674551 (patch)
treed7d777006d3a04f531fe037f59d3e5e8afe2a803 /system
parentfc6f444f74b54a3c7ff3c53ba7fdf83378a86bcc (diff)
Fix #4695
Diffstat (limited to 'system')
-rw-r--r--system/libraries/User_agent.php6
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();
}