Add missing wpdb global

This commit is contained in:
Gerhard 2014-03-05 09:42:12 +02:00
parent 3bdf3e50cf
commit 8fdfbdf3ba
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ class WC_API_Coupons extends WC_API_Resource {
}
if ( isset( $data['code'] ) ) {
global $wpdb;
// Check for duplicate coupon codes
$coupon_found = $wpdb->get_var( $wpdb->prepare( "