X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid_top.php;h=f2829ac315747378c7ca9d3a050d83a7eec579b6;hp=6810f06aa3640aa10abcb69b18a1e0aed6e39249;hb=b56eadb18a023f4d2d712e8936b4dc1ad31fd580;hpb=0369c36aaab5af6ed44da1e13a53baef285f79b4 diff --git a/mailid_top.php b/mailid_top.php index 6810f06aa3..f2829ac315 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -44,7 +44,7 @@ $GLOBALS['module'] = "mailid"; $CSS = 0; // Load the required file(s) require ("inc/config.php"); -if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) +if (isBooleanConstantAndTrue('mxchange_installed')) { // Is the extension active if (!EXT_IS_ACTIVE("mailid", true)) { @@ -109,12 +109,12 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install if ($ltype == "BONUS") $sender = 0; // Is the user's ID unlocked? - $result = SQL_QUERY_ESC("SELECT status, sex, surname, family, ref_payout FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT status, gender, surname, family, ref_payout FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array($url_uid), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Load data - list($status, $sex, $sname, $fname, $ref_pay) = SQL_FETCHROW($result); + list($status, $gender, $sname, $fname, $ref_pay) = SQL_FETCHROW($result); SQL_FREERESULT($result); if ($status == "CONFIRMED")