summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-10-09 16:19:45 -0700
committerBharat Mediratta <bharat@menalto.com>2010-10-09 16:19:45 -0700
commit5d4b683752d8a01628e0d9a5243d58909f8dfcd0 (patch)
treebf7354aa62bb51a45fb584853e52df55da3f5066 /system
parent349071f5019581185a62cdd82a9f59455f453b94 (diff)
Fix for http://dev.kohanaframework.org/issues/3317 -- don't try to implicitly convert a string into an array.
Diffstat (limited to 'system')
-rw-r--r--system/helpers/request.php1
1 files changed, 1 insertions, 0 deletions
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