// Check if he has enougth points for this order and selected more than 0 receivers
if (($usedPoints > 0) && ($usedPoints <= $totalPoints) && ($content['target_send'] > 0)) {
// Gettings points is okay, so we can add $usedPoints later from
- if (($id == '0') || ($type != 'TEMP')) {
+ if ((!isValidId($id)) || ($type != 'TEMP')) {
// New order
$id = '0';
if (isExtensionActive('html_mail')) {
}
// Make sure only valid id numbers can pass
- assert((!is_bool($id)) && ($id > 0));
+ assert(isValidId($id));
// Id is received so we can redirect the user, used points will be added when he send's out the mail
$url = 'modules.php?module=frametester&order=' . $id;