diff --git a/public/src/modules/search.js b/public/src/modules/search.js index b6b6593d49..bba0115956 100644 --- a/public/src/modules/search.js +++ b/public/src/modules/search.js @@ -9,7 +9,7 @@ define('search', ['navigator', 'translator', 'storage'], function (nav, translat Search.query = function (data, callback) { // Detect if a tid was specified var topicSearch = data.term.match(/^in:topic-([\d]+) /); - + callback = callback || function () {}; if (!topicSearch) { ajaxify.go('search?' + createQueryString(data)); callback();