MDL-54963 search: Show no results

This commit is contained in:
David Monllao 2016-06-20 10:57:47 +08:00
parent 5a1728df39
commit 8178b7824d

View file

@ -109,7 +109,7 @@ if ($data) {
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');
}