From 5d4b683752d8a01628e0d9a5243d58909f8dfcd0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 9 Oct 2010 16:19:45 -0700 Subject: Fix for http://dev.kohanaframework.org/issues/3317 -- don't try to implicitly convert a string into an array. --- system/helpers/request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/helpers/request.php b/system/helpers/request.php index 2cc59b20..c04a2fa2 100644 --- a/system/helpers/request.php +++ b/system/helpers/request.php @@ -123,6 +123,7 @@ class request_Core { if ( ! is_array(request::$user_agent)) { + request::$user_agent = array(); request::$user_agent['agent'] = isset($_SERVER['HTTP_USER_AGENT']) ? trim($_SERVER['HTTP_USER_AGENT']) : ''; // Parse the user agent and extract basic information -- cgit v1.2.3