]> git.mxchange.org Git - friendica-addons.git/commitdiff
Again a user found a notice ...
authorMichael <heluecht@pirati.ca>
Sun, 2 Sep 2018 07:46:55 +0000 (07:46 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 2 Sep 2018 07:46:55 +0000 (07:46 +0000)
notifyall/notifyall.php

index 408e74a3b6ff8b1cbb7657e381f0078066c8b95f..ddadc3b62fc2786d8518e91e62ead54bdf28f42a 100644 (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')
        ]);