diff --git a/www-ssl/admin/user.php b/www-ssl/admin/user.php
index f8691563..362d6a3b 100755
--- a/www-ssl/admin/user.php
+++ b/www-ssl/admin/user.php
@@ -12,7 +12,10 @@ if (!IsSet($_GET["enterUID"]))
echo "Neuen Engel eintragen
\n";
if( !isset($_GET["OrderBy"]) ) $_GET["OrderBy"] = "Nick";
- $SQL = "SELECT * FROM `User` ORDER BY `". $_GET["OrderBy"]. "` ASC";
+ $SQL = "SELECT User.*, UserGroups.Name AS 'Group' FROM `User` ".
+ "LEFT JOIN `UserCVS` ON User.UID = UserCVS.UID ".
+ "LEFT JOIN `UserGroups` ON UserGroups.UID = UserCVS.GroupID ".
+ "ORDER BY `". $_GET["OrderBy"]. "` ASC";
$Erg = mysql_query($SQL, $con);
echo mysql_error($con);
@@ -37,7 +40,8 @@ if (!IsSet($_GET["enterUID"]))
?OrderBy=lastLogIn">lastLogIn |
?OrderBy=Art">Type |
?OrderBy=ICQ">ICQ |
- ?OrderBy=jabber">jabber
+ ?OrderBy=jabber">jabber |
+ ?OrderBy=Group">Group