diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-09-09 23:30:12 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-09-09 23:30:12 +0200 |
commit | 0496d664f66c68cc56f68562129672a39cf09416 (patch) | |
tree | a34e61a2cdb605eb5a508345165cc4a5208bc088 /includes | |
parent | c35a19200a488a6582e801b974873f5275573c87 (diff) | |
download | gigologadmin-0496d664f66c68cc56f68562129672a39cf09416.tar.gz gigologadmin-0496d664f66c68cc56f68562129672a39cf09416.tar.bz2 gigologadmin-0496d664f66c68cc56f68562129672a39cf09416.zip |
Fix indentation again.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 18 |
1 files 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 '<script language="javascript">alert("You are missing a value, venue was not created"); </script>'; - else + } + else { - GiglogAdmin_Venue::create($_POST['venuename'],$_POST['venuecity']); - echo '<script language="javascript">alert("Yey, venue created"); </script>'; + GiglogAdmin_Venue::create($_POST['venuename'],$_POST['venuecity']); + echo '<script language="javascript">alert("Yey, venue created"); </script>'; } } } @@ -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. '.'; |