]> git.mxchange.org Git - mailer.git/commitdiff
Wrapper function isAdminsExpertWarningEnabled() introduced
authorRoland Häder <roland@mxchange.org>
Mon, 7 Feb 2011 00:53:33 +0000 (00:53 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 7 Feb 2011 00:53:33 +0000 (00:53 +0000)
inc/libs/admins_functions.php
inc/modules/admin/admin-inc.php

index 8802c5978f2f54d7a20d2e59a46af15c5cdc8037..fad8a524ed21294c0d946ca23fa6c454bbb7c1a5 100644 (file)
@@ -701,5 +701,14 @@ function FILTER_REHASH_ADMINS_PASSWORD ($data) {
        return $data;
 }
 
+// ---------------------------------------------------------------------------
+//                             Wrapper functions
+// ---------------------------------------------------------------------------
+
+// Wrapper function to check wether expert setting warning is enabled
+function isAdminsExpertWarningEnabled () {
+       return (getAminsExpertWarning() == 'Y');
+}
+
 // [EOF]
 ?>
index 28859baee029559b8414b2c2355d22c96cc21e37..f5a70264af536ecb155eccc65ca7de42dc8de978 100644 (file)
@@ -1311,7 +1311,7 @@ function doVerifyExpertSettings () {
                // Is he allowed?
                if ($expertSettings == 'Y') {
                        // Okay, does he want to see them?
-                       if (getAminsExpertWarning() == 'Y') {
+                       if (isAdminsExpertWarningEnabled()) {
                                // Ask for them
                                if (isFormSent()) {
                                        // Is the element set, then we need to change the admin