diff --git a/dav/friendica/main.php b/dav/friendica/main.php index 006dce95..29fd0dbc 100644 --- a/dav/friendica/main.php +++ b/dav/friendica/main.php @@ -1,6 +1,8 @@ config['admin_name'], $sitename); - + if (! x($a->config['sender_email'])) $sender_email = 'noreply@' . $a->get_hostname(); else @@ -54,7 +54,7 @@ function notifyall_post(&$a) { $textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r", "\\n"),array( "", "\n"), $text))),ENT_QUOTES,'UTF-8')); $htmlversion = bbcode(stripslashes(str_replace(array("\\r","\\n"), array("","
\n"),$text))); - + // if this is a test, send it only to the admin(s) // admin_email might be a comma separated list, but we need "a@b','c@d','e@f if ( intval($_REQUEST['test'])) {