Browse Source

! do the gecko check with firefox checks

Signed-off-by: Spuds <[email protected]>
Spuds 12 years ago
parent
commit
41831f4713
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Class-BrowserDetect.php

+ 1 - 1
Sources/Class-BrowserDetect.php

@@ -122,7 +122,7 @@ class browser_detector
 	function isFirefox()
 	{
 		if (!isset($this->_browsers['is_firefox']))
-			$this->_browsers['is_firefox'] = preg_match('~(?:Firefox|Ice[wW]easel|IceCat|Shiretoko|Minefield)/~', $_SERVER['HTTP_USER_AGENT']) === 1;
+			$this->_browsers['is_firefox'] = preg_match('~(?:Firefox|Ice[wW]easel|IceCat|Shiretoko|Minefield)/~', $_SERVER['HTTP_USER_AGENT']) === 1 && $this->isGecko();
 		return $this->_browsers['is_firefox'];
 	}