diff options
-rw-r--r-- | search/js/result.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/search/js/result.js b/search/js/result.js index cb5ec31cd31..5ccc42252bf 100644 --- a/search/js/result.js +++ b/search/js/result.js @@ -16,6 +16,9 @@ OC.search.hide=function(){ }; } OC.search.showResults=function(results){ + if(results.length==0){ + return; + } if(!OC.search.showResults.loaded){ var parent=$('<div/>'); $('body').append(parent); |