Rewrote reset and some extensions:
[mailer.git] / inc / libs / profile_functions.php
index 6394642c17c0428e5bb9b3cd4d45fbe7210a078f..196cebc47b4986dd03ecec609aaeae1424de2d47 100644 (file)
@@ -68,12 +68,12 @@ function getResendProfileUpdate () {
        return $GLOBALS[__FUNCTION__];
 }
 
-// Getter for send_prof_update
-function getSendProfUpdate () {
+// Getter for send_profile_update
+function getSendProfileUpdate () {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS[__FUNCTION__] = getConfig('send_prof_update');
+               $GLOBALS[__FUNCTION__] = getConfig('send_profile_update');
        } // END - if
 
        // Return cache
@@ -85,7 +85,7 @@ function isSendProfileUpdateEnabled() {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS[__FUNCTION__] = (getSendProfUpdate() == 'Y');
+               $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('profile', '0.1.0')) && (getSendProfileUpdate() == 'Y'));
        } // END - if
 
        // Return cache