From 7d8fe9a4ff4560c7af603eac575fbeb7e75355e3 Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 27 Feb 2015 13:09:22 -0500 Subject: [PATCH] Fixes #1850 search category results sometimes fails --- src/definitions/modules/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 9ae93a7dd..ce626a100 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -310,7 +310,7 @@ $.fn.search = function(parameters) { $.each(results, function(index, category) { if($.isArray(category.results)) { result = module.search.object(value, category.results)[0]; - if(result.length > 0) { + if(result && result.length > 0) { return true; } }