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/pages/guest_login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/pages/guest_login.php') diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index ed8b4dae..1d8a34dd 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -105,7 +105,7 @@ function guest_register() { } $selected_angel_types = array(); - foreach ($angel_types as $angel_type_id => $angel_type_name) + foreach (array_keys($angel_types) as $angel_type_id) if (isset($_REQUEST['angel_types_' . $angel_type_id])) $selected_angel_types[] = $angel_type_id; @@ -252,7 +252,7 @@ function guest_logout() { } function guest_login() { - global $user, $privileges; + global $privileges; $nick = ""; -- cgit v1.2.3-54-g00ecf