summaryrefslogtreecommitdiff
path: root/includes/sys_lang.php
diff options
context:
space:
mode:
authorJan-Philipp Litza <janphilipp@litza.de>2012-12-29 13:58:59 +0100
committerJan-Philipp Litza <janphilipp@litza.de>2012-12-29 13:58:59 +0100
commit7c7b2d3b54084319ed0d6392f9ea13e00173f011 (patch)
treed52b460356377be1339d4c2a1bed8639f9c14764 /includes/sys_lang.php
parent1867c884848b85c5766c7d2cbc30b353356d00a9 (diff)
polished code and display of shiftview and used more icons
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) {