浏览代码

[Web] Fix null ua in debug.js - fixes #2615

andryyy 6 年之前
父节点
当前提交
5bb23a2664
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      data/web/js/site/debug.js

+ 3 - 0
data/web/js/site/debug.js

@@ -524,6 +524,9 @@ jQuery(function($){
     });
     } else if (table == 'autodiscover_log') {
       $.each(data, function (i, item) {
+        if (item.ua == null) {
+          item.ua = 'unknown';
+        }
         item.ua = '<span style="font-size:small">' + item.ua + '</span>';
         if (item.service == "activesync") {
           item.service = '<span class="label label-info">ActiveSync</span>';