diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 15:25:49 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 15:25:49 +0100 |
commit | 39da78b2588a60a2f43fb8f77448ab9604550978 (patch) | |
tree | 4d0489559a6040ef929921444e6b207adb6824ab /system/libraries/User_agent.php | |
parent | 318c485b7b83356543c9aa7ab65464893d7eb8fe (diff) |
Fix some minor PHP 8.1 deprecation warnings
Diffstat (limited to 'system/libraries/User_agent.php')
-rw-r--r-- | system/libraries/User_agent.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/User_agent.php b/system/libraries/User_agent.php index a42975b35..c144db7a8 100644 --- a/system/libraries/User_agent.php +++ b/system/libraries/User_agent.php @@ -498,7 +498,7 @@ class CI_User_agent { else { $referer_host = @parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST); - $own_host = parse_url(config_item('base_url'), PHP_URL_HOST); + $own_host = parse_url((string) config_item('base_url'), PHP_URL_HOST); $this->referer = ($referer_host && $referer_host !== $own_host); } |