]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/profile_functions.php
Use countSumTotalData() instead of SQL query
[mailer.git] / inc / libs / profile_functions.php
index 2af462437b4eb67dd6f513c481a0d5c903b52edc..6394642c17c0428e5bb9b3cd4d45fbe7210a078f 100644 (file)
@@ -68,12 +68,24 @@ function getResendProfileUpdate () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Getter for send_prof_update
+function getSendProfUpdate () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('send_prof_update');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Determines whether sending profile update notification is enabled
 function isSendProfileUpdateEnabled() {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
+               $GLOBALS[__FUNCTION__] = (getSendProfUpdate() == 'Y');
        } // END - if
 
        // Return cache