]> git.mxchange.org Git - friendica.git/commitdiff
Add improvements
authorPhilipp <admin@philipp.info>
Sat, 19 Sep 2020 20:49:44 +0000 (22:49 +0200)
committerPhilipp <admin@philipp.info>
Sat, 19 Sep 2020 20:49:44 +0000 (22:49 +0200)
src/Util/EMailer/MailBuilder.php

index 6a7412f683d74c7356ed91897667cae9b64270db..24190fe4d40a06d46324b3ae4a0cd66bf93e3867 100644 (file)
@@ -184,8 +184,7 @@ abstract class MailBuilder
         */
        public function setHeader(string $name, string $value)
        {
-               $this->headers[$name] = [];
-               $this->headers[$name][] = $value;
+               $this->headers[$name] = [$value];
 
                return $this;
        }