MDL-54963 search: Show no results

This commit is contained in:
David Monllao
2016-07-12 10:23:52 +02:00
parent 47806ea17e
commit cc145bf17b
+1 -1
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');
}