MattWilcox/Adaptive-Images — pull request #156 by Billy- (2014-07-02 10:06:36+00:00)
Title: Updates $is_mobile()

I have changed the `is_mobile()` function so that it returns a boolean.

function is_mobile() {
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
return !!strpos($userAgent, 'mobile');
}

This renders this if/else block unnecessary:

if(!is_mobile()){
$is_mobile = "FALSE";
} else {
$is_mobile = "TRUE";
}

I have removed all occurrences of this and replaced it with `$is_mobile = is_mobile();`.