summaryrefslogtreecommitdiff
path: root/FS/FS/Record.pm
diff options
context:
space:
mode:
authorivan <ivan>2001-11-05 16:42:19 +0000
committerivan <ivan>2001-11-05 16:42:19 +0000
commitdcdc515874c5db8e450550f41da21e9490709d5b (patch)
treed78b37315870a5438c4cdc97bebb0d4e6c92855d /FS/FS/Record.pm
parente4c4a600a9f167f84c1a0663f73797ed18934e92 (diff)
AUTOLOAD optimizations broke things rather badly, oops
Diffstat (limited to 'FS/FS/Record.pm')
-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 3c8e9ba..9f35494 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; }