summaryrefslogtreecommitdiff
path: root/includes/controller
diff options
context:
space:
mode:
Diffstat (limited to 'includes/controller')
-rw-r--r--includes/controller/angeltypes_controller.php2
-rw-r--r--includes/controller/user_angeltypes_controller.php2
-rw-r--r--includes/controller/user_driver_licenses_controller.php2
-rw-r--r--includes/controller/users_controller.php2
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(''));