mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-54963 search: Show no results
This commit is contained in:
parent
5a1728df39
commit
8178b7824d
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue