Permalink
Browse files

example references undeclared variable

$emailSettings is undeclared and raises a warning.
$mailer->FromName = $emailSettings['from_name'];
  • Loading branch information...
gitbnw committed Nov 28, 2018
1 parent f024bbe commit 49ea3d579dcd3ff8c16d0a92f99ada042a7b4658
Showing with 2 additions and 1 deletion.
  1. +2 −1 content/developer/Scheduled Tasks.adoc
@@ -136,7 +136,8 @@ class SomeClass
$admin->retrieveSettings();
$admin->settings['notify_fromname']
$mailer->From = $admin->settings['notify_fromaddress']
$mailer->FromName = $emailSettings['from_name'];
$mailer->FromName = $admin->settings['notify_fromname'];
$mailer->IsHTML(true);
//Add message and recipient.

0 comments on commit 49ea3d5

Please sign in to comment.