X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fwrapper-functions.php;h=58f557f9a88daf8b7526f59df5a506f383e96ca3;hb=d2c972ef5f68c2f69865aa4f392841d166a419ae;hp=b5fef6af950db2ab03a84681f2a083496886e60e;hpb=3c9f89dcfcf53c2d5c987bdd37cdcfe990de0691;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index b5fef6af95..58f557f9a8 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -326,13 +326,13 @@ function isInstalled () { // Check wether an admin is registered function isAdminRegistered () { // Is cache set? - if (!isset($GLOBALS['is_admin_registered'])) { + if (!isset($GLOBALS[__FUNCTION__])) { // Simply check it - $GLOBALS['is_admin_registered'] = ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y')); + $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y')); } // END - if // Return it - return $GLOBALS['is_admin_registered']; + return $GLOBALS[__FUNCTION__]; } // Checks wether the reset mode is active @@ -666,13 +666,13 @@ function enableBlockMode ($enabled = true) { // Checks wether block-mode is enabled function isBlockModeEnabled () { // Abort if not set - if (!isset($GLOBALS[__FUNCTION__])) { + if (!isset($GLOBALS['block_mode'])) { // Needs to be fixed debug_report_bug(__FUNCTION__, __LINE__, 'Block_mode is not set.'); } // END - if // Return it - return $GLOBALS[__FUNCTION__]; + return $GLOBALS['block_mode']; } // Wrapper function for addPointsThroughReferalSystem()