X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=b675c6b6dc522617cd22de76010508efe72eed31;hb=5b285f7a67a114e9c75338fe3b1c1b02a268f059;hp=beb7f685025dbae43840e6c928d00d62ccf8ef09;hpb=682edce003a1a91f66fb8e2212d7fdb591379843;p=mailer.git
diff --git a/inc/template-functions.php b/inc/template-functions.php
index beb7f68502..b675c6b6dc 100644
--- a/inc/template-functions.php
+++ b/inc/template-functions.php
@@ -415,7 +415,7 @@ function detectExtraTemplatePath ($template) {
}
// Loads an email template and compiles it
-function loadEmailTemplate ($template, $content = array(), $userid = '0') {
+function loadEmailTemplate ($template, $content = array(), $userid = '0', $loadUserData = true) {
global $DATA;
// Make sure all template names are lowercase!
@@ -452,7 +452,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = '0') {
// Merge data if valid
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - PRE
");
- if (isUserDataValid()) {
+ if ((isUserDataValid()) && ($loadUserData === true)) {
$content = merge_array($content, getUserDataArray());
} // END - if
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - AFTER
");