X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=c57e2c52e2fdad3e363e9f3a57b020b1b9821b53;hp=fe01016b23aa1d8f44fa7a7262812e5b678b7af5;hb=5ef42cb239e9225f160f5963a718f14bc70a1866;hpb=0bf0f6a180c9869b4551076337965260bf2104ad;ds=sidebyside diff --git a/inc/template-functions.php b/inc/template-functions.php index fe01016b23..c57e2c52e2 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -467,7 +467,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load // Is content an array? if (is_array($content)) { // Add expiration to array - if ((isExtensionInstalled('autopurge')) && (getAutoPurge() == '0')) { + if ((isExtensionInstalled('autopurge')) && (isConfigEntrySet('auto_purge')) && (getAutoPurge() == '0')) { // Will never expire! $content['expiration'] = '{--MAIL_WILL_NEVER_EXPIRE--}'; } elseif ((isExtensionInstalled('autopurge')) && (isConfigEntrySet('auto_purge'))) {