summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
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/ ) {