diff --git a/src/routes/api.js b/src/routes/api.js index 119bc2334f..762f17b1b9 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -300,6 +300,7 @@ var path = require('path'), } if(!results) { + results = []; results[0] = results[1] = []; }