]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Wrapper introduced, renaming to the naming convention:
[mailer.git] / inc / wrapper-functions.php
index 84e126ca9fa99a7df4c930f9f90ce9495799565c..a826c3d69b85716689946314fb9f18eb01ac04d9 100644 (file)
@@ -2581,6 +2581,18 @@ function getTotalReceivers ($mode = 'normal') {
        return $numRows;
 }
 
+// Wrapper "getter" to get total unconfirmed mails for given userid
+function getTotalUnconfirmedMails ($userid) {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__][$userid])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_links', 'id', 'userid', true);
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__][$userid];
+}
+
 //-----------------------------------------------------------------------------
 //                        Configuration wrapper
 //-----------------------------------------------------------------------------