Fix #16420 undefined $model_mail_selected_id
Set $model_mail_selected_id to 0 when it is undefined
This commit is contained in:
parent
2642e1d1b3
commit
e079ceb9c3
@ -488,7 +488,7 @@ class FormMail extends Form
|
|||||||
|
|
||||||
// Zone to select email template
|
// Zone to select email template
|
||||||
if (count($modelmail_array) > 0) {
|
if (count($modelmail_array) > 0) {
|
||||||
$model_mail_selected_id = GETPOSTISSET('modelmailselected') ? GETPOST('modelmailselected', 'int') : $arraydefaultmessage->id;
|
$model_mail_selected_id = GETPOSTISSET('modelmailselected') ? GETPOST('modelmailselected', 'int') : ( ($arraydefaultmessage->id) ? $arraydefaultmessage->id : 0 );
|
||||||
|
|
||||||
// If list of template is filled
|
// If list of template is filled
|
||||||
$out .= '<div class="center" style="padding: 0px 0 12px 0">'."\n";
|
$out .= '<div class="center" style="padding: 0px 0 12px 0">'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user