summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/Record.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 3c8e9bac6..9f3549468 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -384,7 +384,7 @@ $record->column('value') is a synonym for $record->set('column','value');
sub AUTOLOAD {
my $field = $AUTOLOAD;
$field =~ s/.*://;
- if ( scalar(@_) == 2 ) {
+ if ( defined($_[1]) ) {
$_[0]->setfield($field, $_[1]);
} else {
$_[0]->getfield($field);
@@ -1036,12 +1036,12 @@ sub hfields {
\%hash;
}
-#sub _dump {
-# my($self)=@_;
-# join("\n", map {
-# "$_: ". $self->getfield($_). "|"
-# } (fields($self->table)) );
-#}
+sub _dump {
+ my($self)=@_;
+ join("\n", map {
+ "$_: ". $self->getfield($_). "|"
+ } (fields($self->table)) );
+}
sub DESTROY { return; }