Skip to content

Commit e1afcfd

Browse files
committed
Merge pull request #2279 from ManeBit/patch-1
[FIX] Default case to allow for custom payout methods
2 parents 0138b82 + 2f2c625 commit e1afcfd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

include/config/monitor_crons.inc.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
// Small helper array that may be used on some page controllers to
44
// fetch the crons we wish to monitor
55
switch ($config['payout_system']) {
6-
case 'pplns':
7-
$sPayoutSystem = $config['payout_system'] . '_payout';
8-
break;
9-
case 'pps':
10-
$sPayoutSystem = $config['payout_system'] . '_payout';
11-
break;
126
case 'prop':
137
$sPayoutSystem = 'proportional_payout';
148
break;
9+
default: // pps && pplns land here
10+
$sPayoutSystem = $config['payout_system'] . '_payout';
1511
}
1612

1713
$aMonitorCrons = array('statistics','tickerupdate','notifications','tables_cleanup','findblock',$sPayoutSystem,'blockupdate','payouts');
14+
15+
?>

0 commit comments

Comments
 (0)