Skip to content

Commit

Permalink
MDL-54963 search: Show no results
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Jul 12, 2016
1 parent 5a1728d commit 8178b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

if ($errorstr = $search->get_engine()->get_query_error()) {
echo $OUTPUT->notification(get_string('queryerror', 'search', $errorstr), 'notifyproblem');
} else if (empty($results) && !empty($data)) {
} else if (empty($results->totalcount) && !empty($data)) {
echo $OUTPUT->notification(get_string('noresults', 'search'), 'notifymessage');
}

Expand Down

0 comments on commit 8178b78

Please sign in to comment.