Fixes membership renewal
This commit is contained in:
1 parent
6a4c5cfded
commit
eaf1f2fba3
2 files changed
+11
-4
No files matched your search
+1
-1
@@ -63,7 +63,7 @@ if($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
return_json_response(array('user'=> NULL, 'card' => get_card($card_number)));
|
||||
|
||||
}
|
||||
else if($data['action'] === 'update_card') {
|
||||
else if( in_array($data['action'], array('update_card', 'add_or_renew')) ) {
|
||||
/* Existing user */
|
||||
if( !is_numeric($data['user_id']) ) {
|
||||
return_json_response(array('error' => "Value user_id must be numeric: '".$data['user_id']."'"), 400);
|
||||
|
||||
Reference in new issue
Block a user