Index: lib/tablelib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/tablelib.php,v retrieving revision 1.36 diff -u -r1.36 tablelib.php --- lib/tablelib.php 30 Jul 2008 09:02:44 -0000 1.36 +++ lib/tablelib.php 29 Aug 2008 06:01:18 -0000 @@ -752,7 +752,8 @@ * This function is not part of the public api. */ function print_initials_bar(){ - if($this->use_initials && isset($this->columns['fullname'])) { + if (($this->sess->i_last || $this->sess->i_first || $this->use_initials) + && isset($this->columns['fullname'])) { $strall = get_string('all'); $alpha = explode(',', get_string('alphabet')); @@ -798,10 +799,7 @@ * This function is not part of the public api. */ function print_nothing_to_display(){ - if ($this->get_initial_first()||$this->get_initial_last()){ - // Do we need to print initial bars? - $this->print_initials_bar(); - } + $this->print_initials_bar(); print_heading(get_string('nothingtodisplay')); }