]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/profile_functions.php
Fix for missing variable
[mailer.git] / inc / libs / profile_functions.php
index 9bd3c1e207f25d351ea07bd9348f021eaf7bde7b..9a62fb61f434f2bc0e1d7d103a44fdc519e99023 100644 (file)
@@ -49,25 +49,37 @@ if (!defined('__SECURITY')) {
 // Getter for profile_update
 function getProfileUpdate () {
        // Do we have cache?
-       if (!isset($GLOBALS['profile_update'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['profile_update'] = getConfig('profile_update');
+               $GLOBALS[__FUNCTION__] = getConfig('profile_update');
        } // END - if
 
        // Return cache
-       return $GLOBALS['profile_update'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // Getter for resend_profile_update
 function getResendProfileUpdate () {
        // Do we have cache?
-       if (!isset($GLOBALS['resend_profile_update'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['resend_profile_update'] = getConfig('resend_profile_update');
+               $GLOBALS[__FUNCTION__] = getConfig('resend_profile_update');
        } // END - if
 
        // Return cache
-       return $GLOBALS['resend_profile_update'];
+       return $GLOBALS[__FUNCTION__];
+}
+
+// Determines wether sending profile update notification is enabled
+function isSendProfileUpdateEnabled() {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
 }
 
 // [EOF]