summaryrefslogtreecommitdiff
path: root/it_browser.class
diff options
context:
space:
mode:
authorChristian Schneider2008-07-24 14:12:54 +0000
committerChristian Schneider2008-07-24 14:12:54 +0000
commit92e07b4f66121d0509acf2931e084b7a62dc0ee2 (patch)
tree23222f5d6a3a58deda252cc4653e8a0dbce5f26a /it_browser.class
parent12eeff53b20be3e020591138a53049770b9b2955 (diff)
downloaditools-92e07b4f66121d0509acf2931e084b7a62dc0ee2.tar.gz
itools-92e07b4f66121d0509acf2931e084b7a62dc0ee2.tar.bz2
itools-92e07b4f66121d0509acf2931e084b7a62dc0ee2.zip
Compatibility with experimental PHP6
Diffstat (limited to 'it_browser.class')
-rw-r--r--it_browser.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_browser.class b/it_browser.class
index 17f3a8f..c20b6c3 100644
--- a/it_browser.class
+++ b/it_browser.class
@@ -92,7 +92,7 @@ function it_browser()
if (preg_match("/^([a-z]{2})(\-[a-z]{2})?$/i", $optattr[$i], $regs))
$this->Language = $regs[1];
if (preg_match("/^rv:([0-9\.]+)/", $optattr[$i], $regs))
- $this->Version = floatval($regs[1]);
+ $this->Version = (float)$regs[1];
if (strstr($optattr[$i], "Linux") || $optattr[$i] == "X11")
$this->Platform = "Linux";
}