Skip to content
Open
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
7 changes: 4 additions & 3 deletions PHP/mdetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Copyright 2010-2015, Anthony Hand
//
//
// File version 2015.05.13 (May 13, 2015)
// File version 2016.07.23 (July 23, 2016)
// Updates:
// - Moved MobileESP to GitHub. https://github.com/ahand/mobileesp
// - Opera Mobile/Mini browser has the same UA string on multiple platforms and doesn't differentiate phone vs. tablet.
Expand Down Expand Up @@ -1086,7 +1086,8 @@ function DetectMobileQuick()
return $this->isMobilePhone;

//Let's exclude tablets
if ($this->isTierTablet == $this->true)
// Jesse Heap Patch: Prior code was using $this->isTierTablet which isn't set when running this the first time. Changed to DetectTierTablet which sets $this->isTierTablet
if ($this->DetectTierTablet() == $this->true)
return $this->false;

//Most mobile browsing is done on smartphones
Expand Down Expand Up @@ -1284,4 +1285,4 @@ function DetectTierOtherPhones()

//Was informed by a MobileESP user that it's a best practice
// to omit the closing ?> marks here. They can sometimes
// cause errors with HTML headers.
// cause errors with HTML headers.