// 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)) {
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")