Again a user found a notice ... #729

Merged
annando merged 1 commit from and-again into 2018.08-rc 2018-09-02 14:47:07 +02:00

View file

@ -106,8 +106,8 @@ function notifyall_content(&$a)
$o = replace_macros(get_markup_template('notifyall_form.tpl', 'addon/notifyall/'), [
'$title' => $title,
'$text' => htmlspecialchars($_REQUEST['text']),
'$subject' => ['subject',L10n::t('Message subject'),$_REQUEST['subject'],''],
'$text' => htmlspecialchars(defaults($_REQUEST, 'text', '')),
'$subject' => ['subject', L10n::t('Message subject'), defaults($_REQUEST, 'subject', ''),''],
'$test' => ['test',L10n::t('Test mode (only send to administrator)'), 0,''],
'$submit' => L10n::t('Submit')
]);