Fixed endless loop, if no sql_patches is installed and modules.php?module=index was...
[mailer.git] / show_bonus.php
index 8b81926921f028a66b44063ced92110740038de9..61e8ce264adacd49e9992bea202fd7b667fbc612 100644 (file)
@@ -127,7 +127,7 @@ LIMIT 1",
        define('__BONUS_FOOTER', LOAD_TEMPLATE("show_bonus_footer", true));
 
        // Total ranks who can win
-       define('__BONUS_TOTAL_RANKS', $_CONFIG['bonus_ranks']);
+       define('__BONUS_TOTAL_RANKS', getConfig('bonus_ranks'));
 
        // Load final template
        LOAD_TEMPLATE("show_bonus");