Possible fix for nested bug, see bug ticket #157
[mailer.git] / inc / request-functions.php
index b6b45f165f07e5bae6bf4aab58c5bfe86507f4e5..32eb4eea6c5f58f9a454c53ade7d477f2cd3077c 100644 (file)
@@ -228,6 +228,11 @@ function isFormSent () {
        return isPostRequestParameterSet('ok');
 }
 
+// Checks if 'content_type' is set
+function isContentTypeSet () {
+       return isset($GLOBALS['content_type']);
+}
+
 // Setter for content type
 function setContentType ($contentType) {
        $GLOBALS['content_type'] = (string) $contentType;