From 68ffc100fac53cf8e08daf3d88fb9e1400e87b9d Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 14 Apr 2005 15:35:27 +0000 Subject: [PATCH] Don't just print nothing - print "nothing to display" --- lib/tablelib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tablelib.php b/lib/tablelib.php index 5bc9fc2663f..c591373cf87 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -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; }