From 830616869e84527032206427c78ceed9cc5de097 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 2 Feb 2007 05:53:54 +0000 Subject: Cleared bug 1625954 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@789 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/aa.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/aa.pl b/bin/aa.pl index e4f1db70..a9c40750 100755 --- a/bin/aa.pl +++ b/bin/aa.pl @@ -717,7 +717,7 @@ sub form_footer { if ($form->{id}) { - if ($form->{locked} || $transdate <= $closedto) { + if ($form->{locked} || ($transdate && $transdate <= $closedto)) { for ("post", "print_and_post", "delete") { delete $button{$_} } } @@ -730,7 +730,7 @@ sub form_footer { for ("post_as_new", "print_and_post_as_new", "delete") { delete $button{$_} } delete $button{"print_and_post"} if ! ${LedgerSMB::Sysconfig::latex}; - if ($transdate <= $closedto) { + if ($transdate && $transdate <= $closedto) { for ("post", "print_and_post") { delete $button{$_} } } } -- cgit v1.2.3