From f0f10bc349caf2758556b2c53d4effb4a7c2e179 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 8 Nov 2005 20:04:05 +0000 Subject: update engelanmeldung upadte menue strucktur git-svn-id: svn://svn.cccv.de/engel-system@25 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/inc/funktion_user.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'www-ssl/inc/funktion_user.php') 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"; + } } -- cgit v1.2.3-54-g00ecf