From f05f1a3cd4cc3a9fa6021d2c5feedd7e734973ba Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 29 Sep 2016 12:08:12 +0200 Subject: rename to --- includes/pages/user_myshifts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/pages/user_myshifts.php') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 3040c8c3..f50711a7 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -51,12 +51,12 @@ function user_myshifts() { $freeload_comment = $shift['freeload_comment']; if (isset($_REQUEST['submit'])) { - $ok = true; + $valid = true; if (in_array("user_shifts_admin", $privileges)) { $freeloaded = isset($_REQUEST['freeloaded']); $freeload_comment = strip_request_item_nl('freeload_comment'); if ($freeloaded && $freeload_comment == '') { - $ok = false; + $valid = false; error(_("Please enter a freeload comment!")); } } @@ -64,7 +64,7 @@ function user_myshifts() { $comment = strip_request_item_nl('comment'); $user_source = User($shift['UID']); - if ($ok) { + if ($valid) { $result = ShiftEntry_update([ 'id' => $id, 'Comment' => $comment, -- cgit v1.2.3-54-g00ecf