Workaround for missing function, this will be better in 0.3.0
authorRoland Häder <roland@mxchange.org>
Sat, 21 Nov 2009 17:21:08 +0000 (17:21 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 21 Nov 2009 17:21:08 +0000 (17:21 +0000)
inc/functions.php

index 6b7a1b6..6aedaf6 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 {