Removed 2nd parameter for assert() as this is only available in PHP 5.4.8+ but Mailer...
[mailer.git] / inc / modules / member / what-order.php
index b064c4cb7a4c36564795579f0800c2255dc94c81..6f3bc4fc4d545245cf091ade63c420d024cc7ad6 100644 (file)
@@ -263,7 +263,7 @@ LIMIT 1",
                                }
 
                                // Make sure only valid id numbers can pass
-                               assert(isValidId($data['id']), 'data[id]=' . $data['id'] . ' is not a valid id number.');
+                               assert((isset($data['id'])) && (isValidId($data['id'])));
 
                                // Id is received so we can redirect the user, used points will be added when he send's out the mail
                                $data['url'] = 'modules.php?module=frametester&order=' . bigintval($data['id']);