]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-points.php
New (template) wrapper function fixEmptyContentToDashes() introduced, EL rewrites:
[mailer.git] / inc / modules / member / what-points.php
index 6932b6ecd04b07e76792e65f0df88f305c9bf0c3..2017dfd9022049c299bb2057b9670c79b506d39f 100644 (file)
@@ -128,7 +128,7 @@ $content['rows'] = $OUT;
 // Initialize variables
 $content['confirmed'] = '---';
 $content['sent']      = '---';
-$content['receive']  = '---';
+$content['receive']   = '---';
 
 // Only user >= v0.1.2: Fetch confirmed mails counter
 if (isExtensionInstalledAndNewer('user', '0.1.2')) {
@@ -136,17 +136,10 @@ if (isExtensionInstalledAndNewer('user', '0.1.2')) {
        $content['confirmed'] = getUserData('mails_confirmed');
 
        if (isExtensionInstalledAndNewer('user', '0.1.4')) {
-               $content['sent']     = getUserData('emails_sent');
+               $content['sent']    = getUserData('emails_sent');
                $content['receive'] = getUserData('emails_received');
        } // END - if
-
-       // Please update the user extension if you see 3 dashes
-       if (empty($content['sent']))     $content['sent']     = '---';
-       if (empty($content['receive'])) $content['receive'] = '---';
-} else {
-       // Please update!
-       $content['confirmed'] = '---';
-}
+} // END - if
 
 // If TLOCK is 0 add 3 zeros for floating
 if ($content['total_locked'] == '0') $content['total_locked'] = '0.00000';