Skip to content

Commit

Permalink
Merge pull request #9 from laravelian/master
Browse files Browse the repository at this point in the history
Update to fix command line error
  • Loading branch information
zackkitzmiller committed Dec 30, 2014
2 parents 0f4ea9e + e99eb28 commit 51580c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Holmes.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public static function isTablet()
*/
public static function isMobile()
{
if ( empty($_SERVER['HTTP_ACCEPT']) )
{
return false;
}

$accept = $_SERVER['HTTP_ACCEPT'];

if (isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']))
Expand Down

0 comments on commit 51580c4

Please sign in to comment.