Skip to content

Commit

Permalink
Removes null ID from attributes resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 authored Jun 28, 2019
1 parent d4bd027 commit f96a71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/model/class-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ protected function init() {
return array( '0' );
},
'attributes' => function() {
return ! empty( $this->data->get_attributes() ) ? $this->data->get_attributes() : array( '0' );
return ! empty( $this->data->get_attributes() ) ? $this->data->get_attributes() : array();
},
'default_attributes' => function() {
return ! empty( $this->data->get_default_attributes() ) ? $this->data->get_default_attributes() : array( '0' );
Expand Down

0 comments on commit f96a71b

Please sign in to comment.