redirectOnUninstalledExtension('bonus');
// Bonus-Mails
- $result = SQL_QUERY_ESC("SELECT id, url, subject FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`, `url`, `subject` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
array($bonusId), __FILE__, __LINE__);
break;
if (SQL_NUMROWS($result) == 1) {
// Load data
- list($pool, $URL, $title) = SQL_FETCHROW($result);
+ list($pool, $url, $title) = SQL_FETCHROW($result);
// Free result
SQL_FREERESULT($result);
// Status must be CONFIRMED
if (getUserData('status') == 'CONFIRMED') {
// Update last activity if not admin
- if (!isAdmin()) {
+ if ((!isAdmin()) || (isDebugModeEnabled())) {
// Is not admin, so update last activity
updateLastActivity($userId);
} // END - if
if ($isValid === true) {
// If time is zero seconds we have a sponsor mail. 1 Second shall be set to avoid problems
if (($time == '0') && ($payment > 0)) {
- $URL = getUrl();
+ $url = getUrl();
$time = 1;
} // END - if
'userid' => $userId,
'type' => $type,
'data' => $urlId,
- 'url' => $URL
+ 'url' => $url
);
// Load template