]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Now total received mails are reduced if no entry in user_stats_data is found
[mailer.git] / inc / functions.php
index 6b7a1b6138e3948d5e5de7e2721e38052c768f8f..6aedaf61bf7035fc788aab0b4f89739475093129 100644 (file)
@@ -2847,7 +2847,7 @@ function changeDataInFile ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0) {
 }
 // Send notification to admin
 function sendAdminNotification ($subject, $templateName, $content=array(), $userid = '0') {
-       if (isExtensionInstalledAndNewer('admins', '0.4.1')) {
+       if ((isExtensionInstalledAndNewer('admins', '0.4.1')) && (function_exists('sendAdminsEmails'))) {
                // Send new way
                sendAdminsEmails($subject, $templateName, $content, $userid);
        } else {