From c6418c3240dd6f50413c35b4bcf21405a939bb90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 7 Feb 2011 00:53:33 +0000 Subject: [PATCH] Wrapper function isAdminsExpertWarningEnabled() introduced --- inc/libs/admins_functions.php | 9 +++++++++ inc/modules/admin/admin-inc.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index 8802c5978f..fad8a524ed 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -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] ?> diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php index 28859baee0..f5a70264af 100644 --- a/inc/modules/admin/admin-inc.php +++ b/inc/modules/admin/admin-inc.php @@ -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 -- 2.30.2