Update functions.php

This commit is contained in:
FusionPBX
2018-12-22 02:21:20 -07:00
committed by GitHub
parent a248a2f6b4
commit c7af59eccf

View File

@@ -880,7 +880,9 @@ function format_string ($format, $data) {
elseif (preg_match('/windows|win32/i', $user_agent)) {
$platform = 'Windows';
}
elseif (preg_match('/mobile/i', $user_agent)) {
//set mobile to true or false
if (preg_match('/mobile/i', $user_agent)) {
$platform = 'Mobile';
$mobile = 'true';
}