summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/funktion_user.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/funktion_user.php b/includes/funktion_user.php
index cce7d5af..bcb77778 100755
--- a/includes/funktion_user.php
+++ b/includes/funktion_user.php
@@ -27,7 +27,10 @@ function TID2Type($TID)
$SQL = "SELECT Name FROM `EngelType` WHERE TID='$TID'";
$Erg = mysql_query($SQL, $con);
- return mysql_result($Erg, 0);
+ if( mysql_num_rows($Erg))
+ return mysql_result($Erg, 0);
+ else
+ return "";
}