diff --git a/application/frontend/components/search-ajax/js/search-ajax.js b/application/frontend/components/search-ajax/js/search-ajax.js index b67246fe..1a422bef 100644 --- a/application/frontend/components/search-ajax/js/search-ajax.js +++ b/application/frontend/components/search-ajax/js/search-ajax.js @@ -219,7 +219,7 @@ this.elements.list.hide(); } - if ( this.option( 'i18n.title' ) && this.elements.title.length ) { + if ( this.option( 'i18n.title' ) && this.elements.title.length && response.searchCount) { this.elements.title.show().text( this._i18n( 'title', response.searchCount ) ); } @@ -233,4 +233,4 @@ window.history.pushState( {}, 'Search', window.location.origin + window.location.pathname + '?' + $.param( this.option( 'params' ) ) ); } }); -})( jQuery ); \ No newline at end of file +})( jQuery );