diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php index 4ba32d8..498fccd 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php @@ -2736,15 +2736,19 @@ public function outputIsEmpty() { if (!empty($this->view->result)) { return FALSE; } - $empty = TRUE; - // Check whether any of the area handlers aren't empty. + + // Check whether all of the area handlers are empty. foreach (array('empty', 'footer', 'header') as $type) { $handlers = $this->getHandlers($type); foreach ($handlers as $handler) { - $empty &= $handler->isEmpty(); + // If one is not empty, return FALSE now. + if (!$handler->isEmpty()) { + return FALSE; + } } } - return $empty; + + return TRUE; } /**