Skip to content

Commit

Permalink
Fix fatal error during insert. #5277
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed Dec 5, 2017
1 parent b3e76b1 commit 01349ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-edd-discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ public function add( $args ) {


// The DB class 'add' implies an update if the discount being asked to be created already exists
if ( $this->db->add( $args ) ) {
if ( $this->db->insert( $args ) ) {

// We've successfully added/updated the discount, reset the class vars with the new data
$discount = $this->find_by_code( $args['code'] );
Expand Down

0 comments on commit 01349ab

Please sign in to comment.