diff --git a/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php b/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php index b6a0850..dfc568c 100644 --- a/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php +++ b/core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php @@ -69,7 +69,7 @@ public function renderResponse(array $main_content, Request $request, RouteMatch $status_messages = array('#type' => 'status_messages'); $output = $this->drupalRenderRoot($status_messages); $output_trimmed = trim($output); - if (!empty($output_trimmed) && $output_trimmed != '') { + if ($output_trimmed != '') { // There are messages so output them exactly as the theme renders them. $response->addCommand(new PrependCommand(NULL, $output)); }