Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / views_ui / src / Form / Ajax / ViewsFormBase.php
index 375766a4c3c92dc31a8f35dbf41678d968a8822d..619b1914654aac73c5353f1433fc67b3728b3fd8 100644 (file)
@@ -104,7 +104,9 @@ abstract class ViewsFormBase extends FormBase implements ViewsFormInterface {
       // Retrieve the first form from the stack without changing the integer keys,
       // as they're being used for the "2 of 3" progress indicator.
       reset($view->stack);
-      list($key, $top) = each($view->stack);
+      $key = key($view->stack);
+      $top = current($view->stack);
+      next($view->stack);
       unset($view->stack[$key]);
 
       if (array_shift($top) != $identifier) {