// @TODO This constant might be unused? define('__LIST_UNCON_TITLE', '{--ADMIN_LIST_UNCONFIRMED_BONUS_LINKS--}');
// SQL query for mail data (both ids are required for compatiblity to above normal mail
+ // @TODO `id` has been used two times???
$sql = sprintf("SELECT
- `id`,`id` AS `sender`,`subject`,`text`,`url`,`timestamp`,`mails_sent` AS `max_rec`
+ `id`,
+ `id` AS `sender`,
+ `subject`,
+ `text`,
+ `url`,
+ `timestamp`,
+ `mails_sent` AS `max_rec`
FROM
`{?_MYSQL_PREFIX?}_bonus`
WHERE
// Load mail data
$result_master = SQL_QUERY($sql, __FILE__, __LINE__);
- // Do we have an entry?
+ // Is there an entry?
if (SQL_NUMROWS($result_master) == 1) {
// Mail order / bonus mail found
$poolData = SQL_FETCHARRAY($result_master);
bigintval($poolData['max_rec'])
),__FILE__, __LINE__);
- // Do we have entries?
+ // Are there entries?
if (!SQL_HASZERONUMS($result)) {
// At least one link left to confirm
$OUT = '';