summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-30 18:49:33 +0200
committermsquare <msquare@notrademark.de>2016-09-30 18:49:33 +0200
commit6dfefc3bb9f054c472156801e37300059444ecc7 (patch)
tree1917fda87003323126b8d7312b3f54b31f27dee0 /includes/view
parentb87eb49b9324a56da723804e088415d52df77d77 (diff)
small code improvements
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/ShiftEntry_view.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/view/ShiftEntry_view.php b/includes/view/ShiftEntry_view.php
index fab5be66..5bf10a91 100644
--- a/includes/view/ShiftEntry_view.php
+++ b/includes/view/ShiftEntry_view.php
@@ -12,13 +12,12 @@
* @return string
*/
function ShiftEntry_edit_view($angel, $date, $location, $title, $type, $comment, $freeloaded, $freeload_comment, $user_admin_shifts = false) {
+ $freeload_form = [];
if ($user_admin_shifts) {
$freeload_form = [
form_checkbox('freeloaded', _("Freeloaded"), $freeloaded),
form_textarea('freeload_comment', _("Freeload comment (Only for shift coordination):"), $freeload_comment)
];
- } else {
- $freeload_form = [];
}
return page_with_title(_("Edit shift entry"), [
msg(),