From 92e07b4f66121d0509acf2931e084b7a62dc0ee2 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 24 Jul 2008 14:12:54 +0000 Subject: Compatibility with experimental PHP6 --- it_browser.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_browser.class') 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"; } -- cgit v1.2.3