Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / src / Plugin / views / area / Result.php
index 2bbd23bb249850f2144abfded6e67c5aa9136dd5..e8d194773282bfce14da6558c1ed9cad2e9ab7d5 100644 (file)
@@ -115,11 +115,13 @@ class Result extends AreaPluginBase {
     // Send the output.
     if (!empty($total) || !empty($this->options['empty'])) {
       $output .= Xss::filterAdmin(str_replace(array_keys($replacements), array_values($replacements), $format));
+      // Return as render array.
+      return [
+        '#markup' => $output,
+      ];
     }
-    // Return as render array.
-    return [
-      '#markup' => $output,
-    ];
+
+    return [];
   }
 
 }