From a4def69502579db7d2d0ab4718b2373187dfbb8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 24 Nov 2008 16:05:58 +0000 Subject: [PATCH] Support form fixed --- inc/databases.php | 2 +- inc/functions.php | 6 +++--- templates/de/html/member/member_support_form.tpl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 7fbbd9433b..fae6e267e7 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "553"); +define('CURR_SVN_REVISION', "554"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index 177886ad3a..3f5f434e24 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -240,11 +240,11 @@ function LOAD_TEMPLATE($template, $return=false, $content=array()) { $ret = ""; if (empty($GLOBALS['refid'])) $GLOBALS['refid'] = 0; - // @DEPRECATED Try to remove this if() block + // @DEPRECATED Try to rewrite the if() condition if ($template == "member_support_form") { // Support request of a member - $result = SQL_QUERY_ESC("SELECT gender, surname, family, email FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", - array($GLOBALS['userid']), __FILE__, __LINE__); + $result = SQL_QUERY_ESC("SELECT userid, gender, surname, family, email FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", + array($GLOBALS['userid']), __FILE__, __LINE__); // Is content an array? if (is_array($content)) { diff --git a/templates/de/html/member/member_support_form.tpl b/templates/de/html/member/member_support_form.tpl index bd42b69337..52a0387c98 100644 --- a/templates/de/html/member/member_support_form.tpl +++ b/templates/de/html/member/member_support_form.tpl @@ -10,7 +10,7 @@ haben eine Frage an unseren Support?

Hallo Support-Team,
- Meine ID bei Ihrem {!MT_WORD!} lautet: $ID + Meine ID bei Ihrem {!MT_WORD!} lautet: $content[userid]
-- 2.30.2