From 53ad1b5110e22bdbb57960aec7d29b824dda7b5b Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 21 Aug 2016 18:00:24 +0200 Subject: fix codacy unused code --- includes/controller/angeltypes_controller.php | 2 +- includes/controller/user_angeltypes_controller.php | 2 +- includes/controller/user_driver_licenses_controller.php | 2 +- includes/controller/users_controller.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/controller') diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index d6da427e..74a191a7 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -42,7 +42,7 @@ function angeltype_link($angeltype_id) { * Job description for all angeltypes (public to everyone) */ function angeltypes_about_controller() { - global $privileges, $user; + global $user; if (isset($user)) $angeltypes = AngelTypes_with_user($user); diff --git a/includes/controller/user_angeltypes_controller.php b/includes/controller/user_angeltypes_controller.php index c6115b6c..1c7addc9 100644 --- a/includes/controller/user_angeltypes_controller.php +++ b/includes/controller/user_angeltypes_controller.php @@ -23,7 +23,7 @@ function user_angeltypes_unconfirmed_hint() { * Remove all unconfirmed users from a specific angeltype. */ function user_angeltypes_delete_all_controller() { - global $user, $privileges; + global $user; if (! isset($_REQUEST['angeltype_id'])) { error(_("Angeltype doesn't exist.")); diff --git a/includes/controller/user_driver_licenses_controller.php b/includes/controller/user_driver_licenses_controller.php index d13d84d9..0118eeb4 100644 --- a/includes/controller/user_driver_licenses_controller.php +++ b/includes/controller/user_driver_licenses_controller.php @@ -30,7 +30,7 @@ function user_driver_license_required_hint() { * Route user driver licenses actions. */ function user_driver_licenses_controller() { - global $privileges, $user; + global $user; if (! isset($user)) redirect(page_link_to('')); diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php index 404b7f9b..672cbb0f 100644 --- a/includes/controller/users_controller.php +++ b/includes/controller/users_controller.php @@ -4,7 +4,7 @@ * Route user actions. */ function users_controller() { - global $privileges, $user; + global $user; if (! isset($user)) redirect(page_link_to('')); -- cgit v1.2.3-70-g09d2