// List confirmation links from normal or bonus mails
if ((isPostRequestElementSet('id')) && (isGetRequestElementSet('type')) && (postRequestElement('type') == 'normal')) {
// SQL query for mail data
- $sql = sprintf("SELECT
+ $sql = sprintf('SELECT
`s`.`id`,
`p`.`sender`,
`p`.`subject`,
`p`.`id`=`s`.`pool_id`
WHERE
`s`.`pool_id`=%s
-LIMIT 1",
+LIMIT 1',
bigintval(getRequestElement('id'))
);
$DATA = getRequestElement('id');
} elseif (((isPostRequestElementSet('id')) && (isGetRequestElementSet('type')) && (postRequestElement('type') == 'bonus')) && (isExtensionActive('bonus'))) {
// SQL query for mail data (both ids are required for compatiblity to above normal mail
- $sql = sprintf("SELECT
+ $sql = sprintf('SELECT
`id`,
NULL AS `sender`,
`subject`,
`{?_MYSQL_PREFIX?}_bonus`
WHERE
`id`=%s
-LIMIT 1",
+LIMIT 1',
bigintval(getRequestElement('id'))
);
$OUT = loadTemplate('admin_list_unconfirmed_list', TRUE, $OUT);
} else {
// All links are confirmed... strange, you shall normally not get a link to this place in this scenario... hmmm.
- $OUT = displayMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}', TRUE);
+ $OUT = returnMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}');
}
// Prepare content