diff --git a/www/searchFunc.js b/www/searchFunc.js index 20c4c901105b02091808212299f851dd9d248cd8..7b6efd493974d9ce2adc6ad65be313a3a4b46ef7 100644 --- a/www/searchFunc.js +++ b/www/searchFunc.js @@ -128,7 +128,7 @@ UNL_Search.onSearchComplete = function(control, searcher) { } */ - if (searcher.cursor.estimatedResultCount) { + if (searcher.cursor && searcher.cursor.estimatedResultCount) { var $resultHead = $("<div />").addClass('result_head').text('About ' + searcher.cursor.estimatedResultCount + ' results'); $('.result_head', control.root).remove(); $('.gsc-results', control.root).before($resultHead);