diff options
author | msquare <msquare@notrademark.de> | 2016-08-21 18:00:24 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-08-21 18:00:39 +0200 |
commit | 53ad1b5110e22bdbb57960aec7d29b824dda7b5b (patch) | |
tree | 5a33544142ecf13e5902ff196d8b8470b5120945 /includes/controller | |
parent | 29cbd4a9dde440605c5f34d50961fa5208411293 (diff) |
fix codacy unused code
Diffstat (limited to 'includes/controller')
4 files changed, 4 insertions, 4 deletions
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('')); |