summaryrefslogtreecommitdiff
path: root/includes/sys_lang.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_lang.php')
-rw-r--r--includes/sys_lang.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/includes/sys_lang.php b/includes/sys_lang.php
index 40abf754..3a043614 100644
--- a/includes/sys_lang.php
+++ b/includes/sys_lang.php
@@ -23,11 +23,13 @@ function Get_Text($TextID, $NoError = false) {
@ $Erg = mysql_query($SQL, $con);
if (mysql_num_rows($Erg) == 1)
- return (@ mysql_result($Erg, 0, "Text"));
- elseif ($NoError && !$debug) return "";
- else {
+ return mysql_result($Erg, 0, "Text");
+ elseif ($NoError && !$debug)
+ return "";
+ elseif ($debug)
return "Error Data, '$TextID' found " . mysql_num_rows($Erg) . "x";
- }
+ else
+ return $TextID;
}
function Print_Text($TextID, $NoError = false) {