Skip to content

Commit

Permalink
Coding standards fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tatusah committed Jul 12, 2019
1 parent d9254ce commit ed7f98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-session-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function save_data( $old_session_key = 0 ) {

wp_cache_set( $this->get_cache_prefix() . $this->_customer_id, $this->_data, WC_SESSION_CACHE_GROUP, $this->_session_expiration - time() );
$this->_dirty = false;
if ( get_current_user_id() != $old_session_key && !is_object( get_user_by( 'id', $old_session_key ) ) ) {
if ( get_current_user_id() != $old_session_key && ! is_object( get_user_by( 'id', $old_session_key ) ) ) {
$this->delete_session( $old_session_key );
}
}
Expand Down

0 comments on commit ed7f98a

Please sign in to comment.