diff options
author | ivan <ivan> | 2002-01-24 17:02:53 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-01-24 17:02:53 +0000 |
commit | 99e136cfed6e793e7f85b0916239416bf96acaf7 (patch) | |
tree | 16bfab57bd9d46e890b7f9f818404d7349efea19 | |
parent | 243ec8f6a0ef59759f1398967faa561a43b1dff5 (diff) |
emit a warning in this unlikely case again
-rw-r--r-- | FS/FS/Record.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 6c0f5f819..5c828b7c6 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -122,7 +122,10 @@ sub new { my $self = {}; bless ($self, $class); - $self->{'Table'} = shift unless defined ( $self->table ); + unless defined ( $self->table ) { + $self->{'Table'} = shift; + carp "warning: FS::Record::new called with table name ". $self->{'Table'}; + } my $hashref = $self->{'Hash'} = shift; |