summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-08-21 23:11:23 +0200
committermsquare <msquare@notrademark.de>2016-08-21 23:11:23 +0200
commitde917bc54323f75381c419836d5ee591bc11e311 (patch)
treebd26f02021de9648aa4d5e4b1b5659f56f5c145c /includes
parentf02148af3542ed23a910ed069851e1e7032f7601 (diff)
remove unused code
Diffstat (limited to 'includes')
-rw-r--r--includes/controller/angeltypes_controller.php2
-rw-r--r--includes/controller/user_angeltypes_controller.php2
-rw-r--r--includes/pages/user_news.php2
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 = '<div class="col-md-12"><h1>' . meetings_title() . '</h1>' . msg();