diff --git a/events_ajax.php b/events_ajax.php index 45752b25b..7104b272a 100644 --- a/events_ajax.php +++ b/events_ajax.php @@ -63,11 +63,10 @@ $user = $login; $get_unapproved = true; -$sendPlainText = false; $format = getValue ( 'format' ); -if ( ! empty ( $format ) && + +$sendPlainText = ( ! empty ( $format ) && ( $format == 'text' || $format == 'plain' ) ); -$sendPlainText = true; $startdate = getIntValue ( 'startdate' ); if ( empty ( $startdate ) )