Permalink
Browse files

fix(search): Search treats "0" as a valid query

  • Loading branch information...
Jon Maul
Jon Maul committed Apr 16, 2015
1 parent 20ab5d4 commit af58fa5d1adc8a7747ee3fd5d994e5852dc06f47
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/search/pages/search/index.php
@@ -20,7 +20,7 @@
$display_query = _elgg_get_display_query($query);
// check that we have an actual query
-if (!$query) {
+if (empty($query) && $query != "0") {
$title = sprintf(elgg_echo('search:results'), "\"$display_query\"");
$body = elgg_echo('search:no_query');

0 comments on commit af58fa5

Please sign in to comment.