From 7f4aa6daa5a8ce72055f2328cf8c17eb8a691b79 Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 28 Jul 2017 20:26:12 +0200 Subject: [PATCH] remove exit commands after redirects (redirect does already die) --- includes/controller/rooms_controller.php | 3 --- includes/controller/shifts_controller.php | 1 - includes/controller/user_angeltypes_controller.php | 1 - 3 files changed, 5 deletions(-) diff --git a/includes/controller/rooms_controller.php b/includes/controller/rooms_controller.php index 2d6f1a77..6d0864ae 100644 --- a/includes/controller/rooms_controller.php +++ b/includes/controller/rooms_controller.php @@ -79,10 +79,7 @@ function rooms_controller() case 'list': default: redirect(page_link_to('admin_rooms')); - break; } - - exit; } /** diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php index 92823b11..96f12baa 100644 --- a/includes/controller/shifts_controller.php +++ b/includes/controller/shifts_controller.php @@ -326,7 +326,6 @@ function shift_next_controller() } redirect(page_link_to('user_shifts')); - exit; } /** diff --git a/includes/controller/user_angeltypes_controller.php b/includes/controller/user_angeltypes_controller.php index ab16139a..f212716d 100644 --- a/includes/controller/user_angeltypes_controller.php +++ b/includes/controller/user_angeltypes_controller.php @@ -419,6 +419,5 @@ function user_angeltypes_controller() return user_angeltype_add_controller(); default: redirect(page_link_to('angeltypes')); - exit; } }