]> git.mxchange.org Git - mailer.git/blobdiff - inc/request-functions.php
Encapsulation and fixes:
[mailer.git] / inc / request-functions.php
index b651b018e73b582b269ba2af5e1a439a8e3ab020..6237299a4a975e7d33e70274de3e65375c625945 100644 (file)
@@ -224,9 +224,9 @@ function setPostRequestParameter ($element, $value) {
 }
 
 // Checks wether a form was sent. If so, the $_POST['ok'] element must be set
-function isFormSent () {
+function isFormSent ($requestParameter = 'ok') {
        // Simply wrap it!
-       return isPostRequestParameterSet('ok');
+       return isPostRequestParameterSet($requestParameter);
 }
 
 // Checks if 'content_type' is set