From ad082ba7e527b914361e274112847cbbacb2bc36 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Wed, 24 Apr 2024 03:15:24 -0600 Subject: [PATCH] Update layers_ajax.php $sendPlainText was always true here, also. --- layers_ajax.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/layers_ajax.php b/layers_ajax.php index 57db7ec96..9bc75d1db 100644 --- a/layers_ajax.php +++ b/layers_ajax.php @@ -28,12 +28,10 @@ $action = getValue ( 'action' ); $public = getValue ( 'public' ); - -$sendPlainText = false; $format = getValue ( 'format' ); -if ( ! empty ( $format ) && + +$sendPlainText = ( ! empty ( $format ) && ( $format == 'text' || $format == 'plain' ) ); -$sendPlainText = true; $error = '';