From c7af59eccfe63a0cddd0219802c11a7959275e0e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 22 Dec 2018 02:21:20 -0700 Subject: [PATCH] Update functions.php --- resources/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index 8ccda85968..8c94d69b90 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -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'; }