diff --git a/autocomplete_ajax.php b/autocomplete_ajax.php index 1b1714ca4..e3f9feeb8 100644 --- a/autocomplete_ajax.php +++ b/autocomplete_ajax.php @@ -49,13 +49,10 @@ if (empty($query)) $query = getValue('query'); -$sendPlainText = false; $format = getValue('format'); -if ( - !empty($format) && - ($format == 'text' || $format == 'plain') -); -$sendPlainText = true; +$sendPlainText = (! empty ( $format ) && + ( $format === 'text' || $format === 'plain' ) ); + if ($sendPlainText) { Header('Content-Type: text/plain'); } else {