Add missing bracket

This commit is contained in:
Gerhard 2014-03-06 07:50:05 +02:00
parent 7e73f621c8
commit 88d6e064fa
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class WC_API_Coupons extends WC_API_Resource {
$coupon_data = wp_parse_args( $data, $defaults );
if ( ! in_array( $coupon_data['type'], array_keys( wc_get_coupon_types() ) ) {
if ( ! in_array( $coupon_data['type'], array_keys( wc_get_coupon_types() ) ) ) {
return new WP_Error( 'woocommerce_api_invalid_coupon_type', __( 'Invalid coupon type', 'woocommerce'), array( 'status' => 400 ) );
}