From 2df2b8795e421facd63840e9b62466f921003c8b Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 11 Oct 2007 17:46:06 +0000 Subject: Remove extraneous test git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1745 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index e46d2022..baacb1ab 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -1358,7 +1358,7 @@ sub datetonum { 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/ ) { -- cgit v1.2.3