Changeset 6067 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-payment-stripe.php
- Timestamp:
- 11/01/2017 04:33:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-payment-stripe.php
r5842 r6067 11 11 const STEP_PAYMENT_DETAILS = 2; 12 12 const STEP_PAYMENT_SUCCESS = 3; 13 14 13 const CSS_VERSION = 1; 15 14 … … 110 109 111 110 $currency = $_POST['currency']; 112 if ( ! array_key_exists( $currency, $data['currencies'] ) or strpos( $currency, 'null' ) === 0) {111 if ( ! array_key_exists( $currency, $data['currencies'] ) || false !== strpos( $currency, 'null' ) ) { 113 112 $data['errors'][] = 'Invalid currency.'; 114 113 return;
Note: See TracChangeset
for help on using the changeset viewer.