From e0b4562de6a977ee00ef1efa99e29823341f41f4 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 10 Dec 2012 10:07:45 +0100 Subject: #83 sort angeltypes to be confirmed --- includes/pages/admin_user_angeltypes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/pages/admin_user_angeltypes.php b/includes/pages/admin_user_angeltypes.php index 7923850b..5b00fe04 100644 --- a/includes/pages/admin_user_angeltypes.php +++ b/includes/pages/admin_user_angeltypes.php @@ -19,7 +19,7 @@ function admin_user_angeltypes() { redirect(page_link_to('admin_user_angeltypes')); } - $users_source = sql_select("SELECT `UserAngelTypes`.`id`, `AngelTypes`.`name`, `User`.`Nick` FROM `UserAngelTypes` JOIN `AngelTypes` ON `UserAngelTypes`.`angeltype_id`=`AngelTypes`.`id` JOIN `User` ON `UserAngelTypes`.`user_id`=`User`.`UID` WHERE `AngelTypes`.`restricted`=1 AND `UserAngelTypes`.`confirm_user_id` IS NULL ORDER BY `AngelTypes`.`name`"); + $users_source = sql_select("SELECT `UserAngelTypes`.`id`, `AngelTypes`.`name`, `User`.`Nick` FROM `UserAngelTypes` JOIN `AngelTypes` ON `UserAngelTypes`.`angeltype_id`=`AngelTypes`.`id` JOIN `User` ON `UserAngelTypes`.`user_id`=`User`.`UID` WHERE `AngelTypes`.`restricted`=1 AND `UserAngelTypes`.`confirm_user_id` IS NULL ORDER BY `AngelTypes`.`name`, `User`.`Nick`"); $users = array (); foreach ($users_source as $user) { $user['actions'] = 'confirm'; @@ -30,8 +30,8 @@ function admin_user_angeltypes() { return page(array ( msg(), table(array ( - 'Nick' => "Nick", 'name' => "Angeltype", + 'Nick' => "Nick", 'actions' => "" ), $users) )); -- cgit v1.2.3-70-g09d2