Browse Source

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

andryyy 6 years ago
parent
commit
5bb23a2664
1 changed files with 3 additions and 0 deletions
  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>';