Skip to content

Commit

Permalink
Fix MailPoet error
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed May 10, 2023
1 parent 79f9754 commit e6b8b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/mailpoet/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct( $mailpoet_api ) {
* @return Sensei_MailPoet
*/
public static function get_instance( $mailpoet_api = null ) {
if ( is_null( $mailpoet_api ) ) {
if ( is_null( $mailpoet_api ) && class_exists( \MailPoet\API\API::class ) ) {
$mailpoet_api = \MailPoet\API\API::MP( 'v1' );
}
if ( ! isset( self::$instance ) ) {
Expand Down

0 comments on commit e6b8b79

Please sign in to comment.