Skip to content
Snippets Groups Projects
Commit a3441beb authored by Kevin Abel's avatar Kevin Abel
Browse files

Added a safety check to the search cursor.

parent 5c8d8e0a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment