浏览代码

Update functions.php

FusionPBX 6 年之前
父节点
当前提交
583ac5879d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      resources/functions.php

+ 3 - 1
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';
 			}