Skip to content

Commit

Permalink
Bug fix in Specific Post/Page Access for Gift/Redemption Codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Mar 7, 2015
1 parent 65e73aa commit 43e29c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2member-pro/includes/classes/sc-gift-codes-in.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function shortcode($attr = array(), $content = '', $shortcode = ''
{
$gifts = $coupons_class->generate_gifts($attr); // Generate new gifts.
$wpdb->query("DELETE FROM `".$wpdb->options."` WHERE `option_name` LIKE '%".esc_sql(c_ws_plugin__s2member_utils_strings::like_escape('s2m_gcs_'.$post_id.'_'.$sp_hash.'_'))."%'");
add_option($user->ID, $option_key_for_gifts, $gifts, '', 'no'); // Store the new gifts.
add_option($option_key_for_gifts, $gifts, '', 'no'); // Store the new gifts.
}
}
else if($user->ID) // Do we have a user ID?
Expand Down

0 comments on commit 43e29c1

Please sign in to comment.