X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fviews_ui%2Fsrc%2FForm%2FAjax%2FViewsFormBase.php;fp=web%2Fcore%2Fmodules%2Fviews_ui%2Fsrc%2FForm%2FAjax%2FViewsFormBase.php;h=619b1914654aac73c5353f1433fc67b3728b3fd8;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=375766a4c3c92dc31a8f35dbf41678d968a8822d;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php b/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php index 375766a4c..619b19146 100644 --- a/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php +++ b/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php @@ -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) {