API: Try fixing wrong key in error message
This commit is contained in:
1 parent
fbf2b2a464
commit
f2bd23efad
1 file changed
+2
-2
+2
-2
@@ -60,9 +60,9 @@ $user = get_user($data['user_id']);
|
||||
if( $user['membership_status'] !== 0 ) {
|
||||
if($user['expires'] === '') {
|
||||
// Life long
|
||||
return_json_response(array('error' => 'Cannot renew, user with id '.$user['id'].' has a life long membership.'), 409);
|
||||
return_json_response(array('error' => 'Cannot renew, user with id '.$data['user_id'].' has a life long membership.'), 409);
|
||||
}
|
||||
return_json_response(array('error' => 'Cannot renew, user with phone '.$user['id'].' has a valid membership until: '.$user['expires']), 409);
|
||||
return_json_response(array('error' => 'Cannot renew, user with phone '.$data['user_id'].' has a valid membership until: '.$user['expires']), 409);
|
||||
}
|
||||
$first_user_membership = $user['expires'] === '0000-00-00';
|
||||
|
||||
|
||||
Reference in new issue
Block a user