Don't just print nothing - print "nothing to display"

This commit is contained in:
moodler
2005-04-14 15:35:27 +00:00
parent d59269cfa6
commit 68ffc100fa
+3 -2
View File
@@ -359,8 +359,9 @@ class flexible_table {
print_paging_bar($this->totalrows, $this->currpage, $this->pagesize, $this->baseurl);
}
if(empty($this->data)) {
return;
if (empty($this->data)) {
print_heading(get_string('nothingtodisplay'));
return true;
}