diff --git a/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php b/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php index 66ffc3b..d9a1844 100644 --- a/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php +++ b/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php @@ -169,7 +169,7 @@ class EntityAliasTypeBase extends ContextAwarePluginBase implements AliasTypeInt $updates = $this->bulkUpdate($ids); $context['sandbox']['count'] += count($ids); - $context['sandbox']['current'] = max($ids); + $context['sandbox']['current'] = !empty($ids) ? max($ids) : ''; $context['results']['updates'] += $updates; $context['message'] = $this->t('Updated alias for %label @id.', array('%label' => $entity_type->getLabel(), '@id' => end($ids)));