Use correct variable for OAuth parameter check

This commit is contained in:
Ryan McCue 2013-11-26 11:19:00 +10:00
parent b4c66db7e2
commit ff6f2e070e
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class WC_API_Authentication {
// check for required OAuth parameters
foreach ( $param_names as $param_name ) {
if ( empty( $params ) )
if ( empty( $params[ $param_name ] ) )
throw new Exception( sprintf( __( '%s parameter is missing', 'woocommerce' ), $param_name ), 404 );
}