diff options
Diffstat (limited to 'www-ssl/inc/funktion_user.php')
-rwxr-xr-x | www-ssl/inc/funktion_user.php | 10 |
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"; + } } |