From 2f381cb0c913323bd587b719973a1474a88e4000 Mon Sep 17 00:00:00 2001 From: jasonjayr Date: Thu, 16 Nov 2006 03:47:08 +0000 Subject: 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 --- LedgerSMB/Form.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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->{$_}) } -- cgit v1.2.3