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` AS `pool_id`, `url`, `subject` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
array($bonusId), __FILE__, __LINE__);
break;
default: // Invalid mail type
reportBug(__FILE__, __LINE__, 'Invalid mail type ' . $ltype . ' detected.');
break;
- }
+ } // END - switch
// Add header
loadIncludeOnce('inc/header.php');
// Was that mail a valid one?
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();
+ if (($time == '0') && ($payment > 0)) {
+ $url = getUrl();
$time = 1;
} // END - if