Reverted of changes in 1704, see ticket #160
[mailer.git] / inc / request-functions.php
index b6b45f165f07e5bae6bf4aab58c5bfe86507f4e5..b651b018e73b582b269ba2af5e1a439a8e3ab020 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -228,6 +229,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;