summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjasonjayr <jasonjayr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-16 03:47:08 +0000
committerjasonjayr <jasonjayr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-16 03:47:08 +0000
commit2f381cb0c913323bd587b719973a1474a88e4000 (patch)
tree6b537b01f2eaba126b2e7a793c55b89bc54ebde9
parente10158367c064273d187d2eae8b3ac30ad90c5b7 (diff)
Declare $self, so if we make a 2nd form object, we don't re-fill out the same global $self.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@639 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index cb109a56..6dcaec79 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -57,7 +57,8 @@ sub new {
elsif ($ARGV[0]) {
$_ = $ARGV[0];
}
-
+
+ my $self = {};
%$self = split /[&=]/;
for (keys %$self) { $self->{$_} = unescape("", $self->{$_}) }