These entries might be null
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 13 Sep 2010 22:15:32 +0000 (16:15 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 15 Sep 2010 14:43:33 +0000 (08:43 -0600)
imp/js/dimpbase.js

index e52d00d..ba56fc3 100644 (file)
@@ -433,7 +433,9 @@ var DimpBase = {
                 if (this.isSearch(null, true)) {
                     re = new RegExp("(" + $F('qsearch_input') + ")", "i");
                     [ 'from', 'subject' ].each(function(h) {
-                        r[h] = r[h].gsub(re, '<span class="qsearchMatch">#{1}</span>');
+                        if (r[h] !== null) {
+                            r[h] = r[h].gsub(re, '<span class="qsearchMatch">#{1}</span>');
+                        }
                     });
                 }