From 7c7b2d3b54084319ed0d6392f9ea13e00173f011 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Sat, 29 Dec 2012 13:58:59 +0100 Subject: polished code and display of shiftview and used more icons --- includes/sys_lang.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'includes/sys_lang.php') 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) { -- cgit v1.2.3-54-g00ecf