]> git.mxchange.org Git - mailer.git/commitdiff
Support form fixed
authorRoland Häder <roland@mxchange.org>
Mon, 24 Nov 2008 16:05:58 +0000 (16:05 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 24 Nov 2008 16:05:58 +0000 (16:05 +0000)
inc/databases.php
inc/functions.php
templates/de/html/member/member_support_form.tpl

index 7fbbd9433bbaf50e2c570dc9e8862e293525b3cd..fae6e267e7e74f847e504214a0c8f2ac891b686a 100644 (file)
@@ -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);
index 177886ad3aaf33e96f46aaf77563b558733e8368..3f5f434e2486fc8551b0b79fdde7d04d5945e099 100644 (file)
@@ -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)) {
index bd42b6933748fa85149efa3daca553b1c4127aab..52a0387c989bd6e2ec02427574c09edf5bbf07c7 100644 (file)
@@ -10,7 +10,7 @@
                haben eine Frage an unseren Support?</STRONG><br />
                <HR noshade width="400">
                <DIV align="left"><PRE style="margin-bottom: 0px">Hallo Support-Team,<br />
-  Meine ID bei Ihrem {!MT_WORD!} lautet: $ID
+  Meine ID bei Ihrem {!MT_WORD!} lautet: $content[userid]
 </PRE></DIV>
                </TD>
        </TR>