Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / output-formatters / src / Transformations / ReorderFields.php
index ca1ee7c31c84475f1e0bc833f17e6e0e3196c687..40d111d58f97b9c71cb98f6e7b7266d2f632f50c 100644 (file)
@@ -57,6 +57,9 @@ class ReorderFields
 
     protected function getSelectedFieldKeys($fields, $fieldLabels)
     {
+        if (empty($fieldLabels)) {
+            return [];
+        }
         if (is_string($fields)) {
             $fields = explode(',', $fields);
         }