Skip to content

Commit

Permalink
De 1249 mailgun pluigin fix warning with session check (#176)
Browse files Browse the repository at this point in the history
* Fix Session warning

* Fixes for session
  • Loading branch information
oleksandr-mykhailenko authored Mar 13, 2024
1 parent dbd29d7 commit 2c39073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function admin_notices(): void
$apiKeyUndefined = (!$this->get_option('apiKey') && (!defined('MAILGUN_APIKEY') || !MAILGUN_APIKEY));
$apiActiveNotConfigured = ($this->get_option('useAPI') === '1' && ($apiRegionUndefined || $apiKeyUndefined));

if ((!isset($_SESSION['settings_turned_of']) || $_SESSION['settings_turned_of'] === false) && ($apiActiveNotConfigured || $smtpActiveNotConfigured) ) { ?>
if (isset($_SESSION) && (!isset($_SESSION['settings_turned_of']) || $_SESSION['settings_turned_of'] === false) && ($apiActiveNotConfigured || $smtpActiveNotConfigured) ) { ?>
<div id='mailgun-warning' class='notice notice-warning is-dismissible'>
<p>
<?php
Expand Down

0 comments on commit 2c39073

Please sign in to comment.