From 8e68e41df448e9bde7baf69ebab2646d2138cca4 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 23 Dec 2016 11:31:00 +0000 Subject: [PATCH] Bug 15415 [QA Followup] - Make code more readable Signed-off-by: Kyle M Hall --- patroncards/edit-profile.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patroncards/edit-profile.pl b/patroncards/edit-profile.pl index 0dc312fd96..b7e61bdf33 100755 --- a/patroncards/edit-profile.pl +++ b/patroncards/edit-profile.pl @@ -88,8 +88,9 @@ foreach my $unit (@$units) { } } -if ($profile_id) { # if new layout, there will be no profile id, so shouldn't look for it - $template->param(profile_id => $profile->get_attr('profile_id')) if $profile->get_attr('profile_id') > 0; +# if new layout, there will be no profile id, so shouldn't look for it +if ( $profile_id && $profile->get_attr('profile_id') > 0 ) { + $template->param( profile_id => $profile->get_attr('profile_id') ); } $template->param( -- 2.20.1