From: Roland Häder Date: Mon, 24 Nov 2008 16:05:58 +0000 (+0000) Subject: Support form fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4def69502579db7d2d0ab4718b2373187dfbb8e;p=mailer.git Support form fixed --- 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]