Update of /cvsroot/popfile/engine/UI
In directory sc8-pr-cvs1:/tmp/cvs-serv25592/UI
Modified Files:
HTML.pm
Log Message:
Fixed bug that could cause a crash if the filter returned no results
Index: HTML.pm
===================================================================
RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** HTML.pm 25 Feb 2003 00:38:56 -0000 1.86
--- HTML.pm 25 Feb 2003 01:23:39 -0000 1.87
***************
*** 2115,2120 ****
# Here's a quick shortcut so that we don't have to iterate
# if there's no work for us to do
!
! @{$self->{history_keys_}} = sort compare_mf @{$self->{history_keys_}};
}
}
--- 2115,2122 ----
# Here's a quick shortcut so that we don't have to iterate
# if there's no work for us to do
!
! if ( $self->history_size() > 0 ) {
! @{$self->{history_keys_}} = sort compare_mf @{$self->{history_keys_}};
! }
}
}
|