Skip to content

Commit 29c953b

Browse files
committed
Merge branch '19.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
2 parents 74898ef + 9d30492 commit 29c953b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htdocs/core/tpl/massactions_pre.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
// Make substitution in email content
300300
$substitutionarray = getCommonSubstitutionArray($langs, 0, null, $object);
301301

302-
$substitutionarray['__EMAIL__'] = $sendto;
302+
$substitutionarray['__EMAIL__'] = empty($sendto) ? '__EMAIL__' : $sendto;
303303
$substitutionarray['__CHECK_READ__'] = '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag=undefined&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')."-undefined", 'md5').'" width="1" height="1" style="width:1px;height:1px" border="0"/>';
304304
$substitutionarray['__ONLINE_PAYMENT_URL__'] = 'UrlToPayOnlineIfApplicable';
305305
$substitutionarray['__ONLINE_PAYMENT_TEXT_AND_URL__'] = 'TextAndUrlToPayOnlineIfApplicable';

0 commit comments

Comments
 (0)