diff --git a/lib/Browser.php b/lib/Browser.php index 5dc957f..69cbfa5 100644 --- a/lib/Browser.php +++ b/lib/Browser.php @@ -1393,7 +1393,6 @@ protected function checkBrowserAmaya() protected function checkBrowserSafari() { if (stripos($this->_agent, 'Safari') !== false - && stripos($this->_agent, 'iPhone') === false && stripos($this->_agent, 'iPod') === false ) { @@ -1538,7 +1537,10 @@ protected function getChromeVersionOnIos() * @return boolean True if the browser is iPhone otherwise false */ protected function checkBrowseriPhone() - { + { + if (stripos($this->_agent, 'Safari') !== false) { + return $this->checkBrowserSafari(); + } if (stripos($this->_agent, 'iPhone') !== false) { $this->setVersion(self::VERSION_UNKNOWN); $this->setBrowser(self::BROWSER_IPHONE);