diff --git a/PHP/mdetect.php b/PHP/mdetect.php index 47810a4..5a7c35f 100755 --- a/PHP/mdetect.php +++ b/PHP/mdetect.php @@ -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. @@ -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 @@ -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. \ No newline at end of file +// cause errors with HTML headers.