X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=show_bonus.php;h=44bf06c84351922b8c84526d996828951a070437;hb=3fc48d57e44aec36f8edc4574c4e7cdf18bb49de;hp=45019b90f62f869f5f18aabb8397c099f5dd2f7c;hpb=b56eadb18a023f4d2d712e8936b4dc1ad31fd580;p=mailer.git diff --git a/show_bonus.php b/show_bonus.php index 45019b90f6..44bf06c843 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -45,6 +45,12 @@ $GLOBALS['module'] = "show_bonus"; $CSS = 0; // Load the required file(s) require ("inc/config.php"); +// Is the "bonus" extension active? +if (!EXT_IS_ACTIVE("bonus")) { + // Redirect to index + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=bonus"); +} // END - if + // List only rankings when script is installed if (isBooleanConstantAndTrue('mxchange_installed')) {