This commit is contained in:
Laurent Destailleur 2018-02-26 00:13:16 +01:00
parent 7ff94c88bd
commit 1666f371bf
2 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ class FormMail extends Form
$out.= '<table class="border" width="100%">'."\n";
$out.= '<table class="border" width="100%" style="border-top: 1px solid #BBB;">'."\n";
// Substitution array
if (! empty($this->withsubstit)) // Unset or set ->withsubstit=0 to disable this.

View File

@ -5627,7 +5627,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey=0, $exclude=null, $ob
'__USER_LASTNAME__' => (string) $user->lastname,
'__USER_FIRSTNAME__' => (string) $user->firstname,
'__USER_FULLNAME__' => (string) $user->getFullName($outputlangs),
'__USER_SUPERVISOR_ID__' => (string) $user->fk_user
'__USER_SUPERVISOR_ID__' => (string) ($user->fk_user ? $user->fk_user : '0')
)
);
}