]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Emailer.php
Remove/replace killme() with *exit()
[friendica.git] / src / Util / Emailer.php
index 42aab8f5f3ef625409d199d291c05a1e64986bb9..a13af739e6f0981cb211b37ca92b32d76e5dea50 100644 (file)
@@ -36,7 +36,7 @@ class Emailer
                Addon::callHooks('emailer_send_prepare', $params);
 
                $email_textonly = false;
-               if (x($params, "uid")) {
+               if (!empty($params['uid'])) {
                        $email_textonly = PConfig::get($params['uid'], "system", "email_textonly");
                }
 
@@ -88,8 +88,9 @@ class Emailer
                        'headers' => $messageHeader,
                        'parameters' => $sendmail_params
                ];
-               //echo "<pre>"; var_dump($hookdata); killme();
+
                Addon::callHooks("emailer_send", $hookdata);
+
                $res = mail(
                        $hookdata['to'],
                        $hookdata['subject'],