Skip to content

Commit

Permalink
Bug fix. refunds,partial_refunds,reversals. See: #345
Browse files Browse the repository at this point in the history
  • Loading branch information
JasWSInc committed Sep 23, 2014
1 parent b9abfa5 commit 191db22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2member/includes/syscon.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ function ws_plugin__s2member_configure_options_and_their_defaults($options = FAL
else if($key === 'specific_ids' && (!is_string($value) || !($value = trim(preg_replace('/[^0-9,]/', '', $value), ','))))
$value = $default_options[$key];

else if($key === 'triggers_immediate_eot' && (!is_string($value) || !preg_match('/^(?:none|refunds|reversals|refunds,reversals)$/', $value)))
else if($key === 'triggers_immediate_eot' && (!is_string($value) || !preg_match('/^(?:none|refunds|reversals|refunds,reversals|refunds,partial_refunds,reversals)$/', $value)))
$value = $default_options[$key];

else if($key === 'membership_eot_behavior' && (!is_string($value) || !preg_match('/^(?:demote|delete)$/', $value)))
Expand Down

0 comments on commit 191db22

Please sign in to comment.