Skip to content

Commit

Permalink
Check if ID is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 19, 2021
1 parent 31bb7dc commit 3ac8f2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ public function setup() {
// Actions.
add_action( 'current_screen', array( $this, 'maybe_download_certificate_or_key' ) );

\add_filter( 'pronamic_gateway_configuration_display_value_' . $this->get_id(), array( $this, 'gateway_configuration_display_value' ), 10, 2 );
$id = $this->get_id();

if ( null !== $id ) {
\add_filter( 'pronamic_gateway_configuration_display_value_' . $id, array( $this, 'gateway_configuration_display_value' ), 10, 2 );
}
}

/**
Expand Down

0 comments on commit 3ac8f2c

Please sign in to comment.