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 368a6b9..3d1be6d 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 @@ -1024,7 +1024,8 @@ public function getArgumentsTokens() { } // Add tokens for every argument (contextual filter) and path arg. - for ($count=1; $count <= count($this->view->display_handler->getHandlers('argument')); $count++) { + $handlers = count($this->view->display_handler->getHandlers('argument')); + for ($count=1; $count <= $handlers; $count++) { if (!isset($tokens["%$count"])) { $tokens["%$count"] = ''; }