From d2b7899c6046c7c5b0f6c787c316bc3cfb0ebf67 Mon Sep 17 00:00:00 2001 From: cookie Date: Sun, 28 Dec 2008 16:07:20 +0000 Subject: append user flags for DECT calls git-svn-id: svn://svn.cccv.de/engel-system@332 29ba0400-6e00-0410-a75a-ca02368028f8 --- includes/funktion_user.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes') 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 ""; } -- cgit v1.2.3-70-g09d2