diff --git a/include/adminlist.php b/include/adminlist.php index 25baf31..3470eaa 100644 --- a/include/adminlist.php +++ b/include/adminlist.php @@ -66,8 +66,12 @@ function getAdminList() { $offlineClients[] = '
' . htmlspecialchars($userInfo['client_nickname']) . '' . translate($lang["adminlist"]["status"]["offline"]) . '
'; continue; } - - $onlineClients[] = '' . '' . htmlspecialchars($user) . '' . ($user['client_away'] ? '' . translate($lang["adminlist"]["status"]["away"]) . '' : '' . translate($lang["adminlist"]["status"]["online"]) . '') . '
'; + if(!$user["client_away_message"]) { + $userAway = translate($lang["adminlist"]["status"]["away"]); + }else{ + $userAway = htmlspecialchars($user["client_away_message"]); + } + $onlineClients[] = '' . '' . htmlspecialchars($user) . '' . ($user['client_away'] ? '' . $userAway . '' : '' . translate($lang["adminlist"]["status"]["online"]) . '') . '
'; } foreach (array_merge($onlineClients, $offlineClients) as $str)