if (getConfig('bonus_active') != 'Y') return false;
// Init variables
- $sql = ''; $bonus = 0; $mail = 0; $column = '';
+ $sql = ''; $bonus = '0'; $mail = '0'; $column = '';
// Select SQL command
switch ($type) {
if (getConfig('bonus_active') != 'Y') return;
// Switch to jackpot-mode when no UID is supplied but userid-mode is selected
- if ((getConfig('bonus_mode') == 'UID') && (getConfig('bonus_userid') == 0) && (isExtensionActive('jackpot'))) {
+ if ((getConfig('bonus_mode') == 'UID') && (getConfig('bonus_userid') == '0') && (isExtensionActive('jackpot'))) {
// Update database & config
updateConfiguration('bonus_mode', 'JACKPOT');
} // END - if