diff options
author | ivan <ivan> | 2005-03-03 08:15:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-03-03 08:15:37 +0000 |
commit | bf264f3c59707da3ed471f0ad2ea32d9c7917e06 (patch) | |
tree | 3dfcf93bc39bf5fe558b05702b67c06f5b182ca6 /FS | |
parent | 411e690aa630bf260c6b3f64bb4b46d9fd2f3539 (diff) |
want a full stack backtrace for this warning
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Record.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 5465f078a..748026a13 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -439,7 +439,7 @@ for a single item, or your data is corrupted. sub qsearchs { # $result_record = &FS::Record:qsearchs('table',\%hash); my $table = $_[0]; my(@result) = qsearch(@_); - carp "warning: Multiple records in scalar search ($table)" + cluck "warning: Multiple records in scalar search ($table)" if scalar(@result) > 1; #should warn more vehemently if the search was on a primary key? scalar(@result) ? ($result[0]) : (); |