summaryrefslogtreecommitdiff
path: root/www-ssl/inc/funktion_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/inc/funktion_user.php')
-rwxr-xr-xwww-ssl/inc/funktion_user.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/www-ssl/inc/funktion_user.php b/www-ssl/inc/funktion_user.php
index a420a09a..573a59d8 100755
--- a/www-ssl/inc/funktion_user.php
+++ b/www-ssl/inc/funktion_user.php
@@ -7,7 +7,15 @@ function UID2Nick($UID) {
$Erg = mysql_query($SQL, $con);
//echo $UID."#";
- return mysql_result($Erg, 0);
+ if( mysql_num_rows($Erg))
+ return mysql_result($Erg, 0);
+ else
+ {
+ if( $UID == -1)
+ return "logout User";
+ else
+ return "UserID $UID not found";
+ }
}