Add a logged warning for trying to fetch a non-existant tab by key.

This commit is contained in:
Colin Kuskie 2008-07-10 20:32:14 +00:00
parent d975109e1f
commit 02635bf3c9

View file

@ -134,6 +134,7 @@ The name of the tab to return the form object for.
sub getTab {
my $self = shift;
my $key = shift;
$self->session->log->warn('Trying to fetch non-existant tab: '.$key) if !exists $self->{_tab}{$key};
return $self->{_tab}{$key}{form};
}