summaryrefslogtreecommitdiff
path: root/Postman/PostmanOptions.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-02-28 08:17:59 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-02-28 08:17:59 +0000
commit942aa536210fe204a2d097eb8878c1d690e0547b (patch)
treec7f5f70a8dabbb377c844e99d12bbb5150423e9d /Postman/PostmanOptions.php
parent51f30e54a8410672eea49817d68dfe2d38b16a21 (diff)
downloadPost-SMTP-942aa536210fe204a2d097eb8878c1d690e0547b.zip
fix undefined 'blog_id' notice
Diffstat (limited to 'Postman/PostmanOptions.php')
-rw-r--r--Postman/PostmanOptions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php
index b6eaaf4..af88b18 100644
--- a/Postman/PostmanOptions.php
+++ b/Postman/PostmanOptions.php
@@ -174,10 +174,9 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
if ( is_multisite() ) {
$network_options = get_site_option( self::POSTMAN_NETWORK_OPTIONS );
+ $blog_id = get_current_blog_id();
if ( isset( $network_options['post_smtp_global_settings'] ) ) {
$blog_id = apply_filters( 'post_smtp_default_site_option', 1 );
- } elseif ( $options && isset( $network_options['post_smtp_allow_overwrite'] ) ) {
- $blog_id = get_current_blog_id();
}
switch_to_blog($blog_id);