Mailer project rwritten:
[mailer.git] / inc / modules / member / what-order.php
index f4799ce3be7c9ecf4db27ac19258c0f1ebda932e..d272ef36e25ff07654e7186a4531f3b5ce37db37 100644 (file)
@@ -251,7 +251,7 @@ LIMIT 1",
                        // 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')) {
@@ -405,7 +405,7 @@ LIMIT 1",
                                }
 
                                // 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&amp;order=' . $id;