X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Frefback_functions.php;h=7ece79ea7d93eaea20c1ad34cd1ba0cf8c1c134c;hb=19188207e6802b82a134b340408cfa34b9b3a80f;hp=844bc83f102e9d7a362bf07d96c2cad3b6b4186f;hpb=e5dde615db05fb62ebe91bd1c030f40c9b91fe17;p=mailer.git diff --git a/inc/libs/refback_functions.php b/inc/libs/refback_functions.php index 844bc83f10..7ece79ea7d 100644 --- a/inc/libs/refback_functions.php +++ b/inc/libs/refback_functions.php @@ -417,5 +417,17 @@ function updateMemberRefbackPercents ($id, $percents) { return $status; } +// Checks wether refback is enabled +function isRefbackEnabled () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = (getConfig('refback_enabled') == 'Y'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // [EOF] ?>