X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fsponsor%2Fwelcome.php;h=12bf7861218db2ad2d2233e53c298078afba79cc;hb=3c50057c4da8c632d1923d7879a2b870d1eb7155;hp=ded3689a7354e81c05947162057e4cf01adf81b0;hpb=2df8c1757b41f35e7c5b6a92c52ca96ab1b0bcb8;p=mailer.git diff --git a/inc/modules/sponsor/welcome.php b/inc/modules/sponsor/welcome.php index ded3689a73..12bf786121 100644 --- a/inc/modules/sponsor/welcome.php +++ b/inc/modules/sponsor/welcome.php @@ -48,13 +48,17 @@ if (!defined('__SECURITY')) { } // Load some data -$result = SQL_QUERY_ESC("SELECT - `id`,`gender`,`surname`,`family`, (`points_amount` - `points_used`) AS `points` +$result = SQL_QUERY_ESC('SELECT + `id`, + `gender`, + `surname`, + `family`, + (`points_amount` - `points_used`) AS `points` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s -LIMIT 1", +LIMIT 1', array( bigintval(getSession('sponsor_id')) ), __FILE__, __LINE__); @@ -66,7 +70,7 @@ $content = SQL_FETCHARRAY($result); SQL_FREERESULT($result); // Load main template -$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', true, $content); +$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', TRUE, $content); // [EOF] ?>