summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2009-02-21 04:27:08 +0000
committerivan <ivan>2009-02-21 04:27:08 +0000
commit8885741747ff6ba17832401791ceb1b7073efdf2 (patch)
treeefafee5ab9c1f0471dbcc25c97c76d8f054de77d
parentd3e67ed93dba417e91046fa6fbc5b6cd0a3413a3 (diff)
it would help to actually finish nowarn_classload kludge
-rw-r--r--FS/FS/Record.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index ee9c23153..809ec0a36 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -37,7 +37,7 @@ $DEBUG = 0;
$me = '[FS::Record]';
$nowarn_identical = 0;
-$nowarn_classload;
+$nowarn_classload = 0;
$no_update_diff = 0;
$no_check_foreign = 0;
@@ -438,7 +438,8 @@ sub qsearch {
}
}
} else {
- cluck "warning: FS::$table not loaded; returning FS::Record objects";
+ cluck "warning: FS::$table not loaded; returning FS::Record objects"
+ unless $nowarn_classload;
@return = map {
FS::Record->new( $table, { %{$_} } );
} values(%result);