if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (isIncludeBonusLoginEnabled())) {
// Update last login if far enougth away
// @TODO This query isn't right, it will only update if the user was for a longer time away!
- SQL_QUERY_ESC('UPDATE
+ sqlQueryEscaped('UPDATE
`{?_MYSQL_PREFIX?}_user_data`
SET
`last_login`=UNIX_TIMESTAMP()
);
// Updated entry?
- $bonus = (!SQL_HASZEROAFFECTED());
+ $bonus = (!ifSqlHasZeroAffectedRows());
} // END - if
if (($bonus === TRUE) && (getRequestElement('do') == 'bonus')) {