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 8802c59..fad8a52 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 28859ba..f5a7026 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