From de917bc54323f75381c419836d5ee591bc11e311 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 21 Aug 2016 23:11:23 +0200 Subject: remove unused code --- includes/controller/angeltypes_controller.php | 2 +- includes/controller/user_angeltypes_controller.php | 2 +- includes/pages/user_news.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index 74a191a7..f8191b2e 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -61,7 +61,7 @@ function angeltypes_about_controller() { * Delete an Angeltype. */ function angeltype_delete_controller() { - global $privileges, $user; + global $privileges; if (! in_array('admin_angel_types', $privileges)) redirect(page_link_to('angeltypes')); diff --git a/includes/controller/user_angeltypes_controller.php b/includes/controller/user_angeltypes_controller.php index 1c7addc9..be835e1f 100644 --- a/includes/controller/user_angeltypes_controller.php +++ b/includes/controller/user_angeltypes_controller.php @@ -111,7 +111,7 @@ function user_angeltypes_confirm_all_controller() { * Confirm an user for an angeltype. */ function user_angeltype_confirm_controller() { - global $user, $privileges; + global $user; if (! isset($_REQUEST['user_angeltype_id'])) { error(_("User angeltype doesn't exist.")); diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index 289cd326..78d63d61 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -12,7 +12,7 @@ function meetings_title() { } function user_meetings() { - global $DISPLAY_NEWS, $user; + global $DISPLAY_NEWS; $html = '

' . meetings_title() . '

' . msg(); -- cgit v1.2.3-70-g09d2