Skip to content

Commit f448a1a

Browse files
committed
simple change to address that custom args cannot be anything but strings
1 parent 46f85e6 commit f448a1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helpers/mail/Mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ public function getSubstitutions()
807807

808808
public function addCustomArg($key, $value)
809809
{
810-
$this->custom_args[$key] = $value;
810+
$this->custom_args[$key] = (string)$value;
811811
}
812812

813813
public function getCustomArgs()
@@ -1020,7 +1020,7 @@ public function getCategories()
10201020

10211021
public function addCustomArg($key, $value)
10221022
{
1023-
$this->custom_args[$key] = $value;
1023+
$this->custom_args[$key] = (string)$value;
10241024
}
10251025

10261026
public function getCustomArgs()

0 commit comments

Comments
 (0)