Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {

Expand Down Expand Up @@ -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);
Expand Down