From e7c842098d951ee5d43fdfac994d28ca350b1609 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 29 Aug 2006 12:42:35 +0000 Subject: fehler in der Language werden jetzt ausgewertet git-svn-id: svn://svn.cccv.de/engel-system@145 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/inc/funktion_lang.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'www-ssl/inc/funktion_lang.php') diff --git a/www-ssl/inc/funktion_lang.php b/www-ssl/inc/funktion_lang.php index 1314c4ac..044da6a5 100755 --- a/www-ssl/inc/funktion_lang.php +++ b/www-ssl/inc/funktion_lang.php @@ -3,7 +3,7 @@ function Get_Text ($TextID) { - GLOBAL $con; + GLOBAL $con, $error_messages; if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN"; @@ -14,12 +14,12 @@ function Get_Text ($TextID) $SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'"; @$Erg = mysql_query($SQL, $con); -// if(!mysql_error($con)) + if( mysql_num_rows( $Erg) == 1) return (@mysql_result($Erg, 0, "Text")); else { -// die("Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x"); + array_push($error_messages, "Get_Text, '$TextID' found ". mysql_num_rows( $Erg). "x in Sprache Database Table for Language (".$_SESSION['Sprache'].")\n"); return "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x"; } @@ -27,7 +27,7 @@ function Get_Text ($TextID) function Print_Text ($TextID) { - GLOBAL $con; + GLOBAL $con, $error_messages; if( !isset($_SESSION['Sprache'])) $_SESSION['Sprache'] = "EN"; @@ -39,11 +39,11 @@ function Print_Text ($TextID) $SQL = "SELECT * FROM `Sprache` WHERE TextID=\"$TextID\" AND Sprache ='".$_SESSION['Sprache']."'"; @$Erg = mysql_query($SQL, $con); -// if(!mysql_error($con)) if( mysql_num_rows( $Erg) == 1) echo nl2br(@mysql_result($Erg, 0, "Text")); else { + array_push($error_messages, "Get_Text, '$TextID' found ". mysql_num_rows( $Erg). "x in Sprache Database Table for Language (".$_SESSION['Sprache'].")\n"); echo "Error Data, '$TextID' found ". mysql_num_rows( $Erg). "x"; } } -- cgit v1.3.1