From 31382231a069f5da624b4022a3d5ca3d80525b87 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 7 Apr 2001 14:59:00 +0000 Subject: [PATCH] Remove global call to unneeded string, and add return_array() function --- phpgwapi/inc/class.browser.inc.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.browser.inc.php b/phpgwapi/inc/class.browser.inc.php index 6011a8705b..ebae656c56 100644 --- a/phpgwapi/inc/class.browser.inc.php +++ b/phpgwapi/inc/class.browser.inc.php @@ -29,10 +29,11 @@ var $BROWSER_AGENT; var $BROWSER_VER; var $BROWSER_PLATFORM; + var $data; function browser () { - global $HTTP_USER_AGENT,$log_version; + global $HTTP_USER_AGENT; /* Determine browser and version */ @@ -96,6 +97,17 @@ */ } + function return_array() + { + $this->data = array( + 'agent' = $this->get_agent, + 'version' = $this->get_version, + 'platform' = $this->get_platform + ); + + return $this->data; + } + function get_agent () { return $this->BROWSER_AGENT;