From 0496d664f66c68cc56f68562129672a39cf09416 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 9 Sep 2021 23:30:12 +0200 Subject: Fix indentation again. --- includes/admin/views/giglog_admin_page.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index beb4fca..86c414e 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -153,12 +153,13 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { if(isset($_POST['newvenue'])) { - IF (empty($_POST['venuename']) || empty($_POST['venuecity'])) + if (empty($_POST['venuename']) || empty($_POST['venuecity'])) { echo ''; - else + } + else { - GiglogAdmin_Venue::create($_POST['venuename'],$_POST['venuecity']); - echo ''; + GiglogAdmin_Venue::create($_POST['venuename'],$_POST['venuecity']); + echo ''; } } } @@ -198,11 +199,12 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $dest = ''; $roles = $concert -> roles(); $x = ''; + foreach ($roles AS $role) { - if($role){ - $cuser = get_user_by( 'login', $role); - $dest.= $cuser->user_email.','; - } + if($role){ + $cuser = get_user_by( 'login', $role); + $dest.= $cuser->user_email.','; + } } $subject = 'Message from GIGLOG: Concert '.$concert->cname().' has a new status '.$cstatus. '.'; -- cgit v1.2.3