Typo 'referral'->'referal' fixed, more 'empty version' fixed
[mailer.git] / inc / functions.php
index 8d4cc44e906a65030c6543570847e47885006dbe..7b691f4bfe5e4686c0423e3512f2cfe9aa8e1e40 100644 (file)
@@ -2919,7 +2919,7 @@ function changeDataInFile ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0) {
 }
 // Send notification to admin
 function sendAdminNotification ($subject, $templateName, $content=array(), $userid = 0) {
-       if (getExtensionVersion('admins') >= '0.4.1') {
+       if (isExtensionInstalledAndNewer('admins', '0.4.1')) {
                // Send new way
                sendAdminsEmails($subject, $templateName, $content, $userid);
        } else {