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

SF.net SVN: ledger-smb: [1745] branches/1.2/LedgerSMB/Form.pm



Revision: 1745
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1745&view=rev
Author:   tetragon
Date:     2007-10-11 10:46:06 -0700 (Thu, 11 Oct 2007)

Log Message:
-----------
Remove extraneous test

Modified Paths:
--------------
    branches/1.2/LedgerSMB/Form.pm

Modified: branches/1.2/LedgerSMB/Form.pm
===================================================================
--- branches/1.2/LedgerSMB/Form.pm	2007-10-11 17:44:18 UTC (rev 1744)
+++ branches/1.2/LedgerSMB/Form.pm	2007-10-11 17:46:06 UTC (rev 1745)
@@ -1358,7 +1358,7 @@
     my ( $self, $myconfig, $date, $picture ) = @_;
 
     if ( $date && $date =~ /\D/ ) {
-        if ( $date && $date =~ /^\d{4}-\d\d-\d\d$/ ) {
+        if ( $date =~ /^\d{4}-\d\d-\d\d$/ ) {
             # SC: Handle standard form of YYYY-MM-DD
             ( $yy, $mm, $dd ) = split /\D/, $date;
         } elsif ( $myconfig->{dateformat} =~ /^yy/ ) {


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