From ac14b5009226a27be0ef348196dbef9b6d028f43 Mon Sep 17 00:00:00 2001 From: wolfpac444 Date: Tue, 27 May 2003 05:44:41 +0000 Subject: [PATCH] Fixed bug that occurs when no branch information is entered (Bug #467) --- admin/branches.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/branches.pl b/admin/branches.pl index 6f38a862cd..3ee2c65a19 100755 --- a/admin/branches.pl +++ b/admin/branches.pl @@ -282,7 +282,9 @@ sub branchinfotable { for my $field ('branchaddress1', 'branchaddress2', 'branchaddress3', 'branchphone', 'branchfax', 'branchemail') { $row{$field} = $branch->{$field}; - $address_empty_p = 0; + if ( $branch->{$field} ) { + $address_empty_p = 0; + } } $row{'address-empty-p'} = $address_empty_p; # {{{ Leave this here until bug 180 is completely resolved in templates -- 2.39.5