From: Roland Häder Date: Mon, 7 Feb 2011 00:53:33 +0000 (+0000) Subject: Wrapper function isAdminsExpertWarningEnabled() introduced X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6418c3240dd6f50413c35b4bcf21405a939bb90;p=mailer.git Wrapper function isAdminsExpertWarningEnabled() introduced --- 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