Browse Source

Fix php warning

jmontoyaa 8 years ago
parent
commit
33aa62ec6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/api.lib.php

+ 1 - 1
main/inc/lib/api.lib.php

@@ -7624,7 +7624,7 @@ function api_mail_html(
     }
 
     //If the SMTP configuration only accept one sender
-    if ($platform_email['SMTP_UNIQUE_SENDER']) {
+    if (isset($platform_email['SMTP_UNIQUE_SENDER']) && $platform_email['SMTP_UNIQUE_SENDER']) {
         $senderName = $platform_email['SMTP_FROM_NAME'];
         $senderEmail = $platform_email['SMTP_FROM_EMAIL'];
     }