[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [639] trunk/LedgerSMB/Form.pm



Revision: 639
          http://svn.sourceforge.net/ledger-smb/?rev=639&view=rev
Author:   jasonjayr
Date:     2006-11-15 19:47:08 -0800 (Wed, 15 Nov 2006)

Log Message:
-----------
Declare $self, so if we make a 2nd form object, we don't re-fill out the same global $self.

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2006-11-16 02:12:10 UTC (rev 638)
+++ trunk/LedgerSMB/Form.pm	2006-11-16 03:47:08 UTC (rev 639)
@@ -57,7 +57,8 @@
 	elsif ($ARGV[0]) {
 		$_ = $ARGV[0];
 	}
-
+	
+	my $self = {};
 	%$self = split /[&=]/;
 	for (keys %$self) { $self->{$_} = unescape("", $self->{$_}) }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.