diff --git a/core/modules/user/src/UserListBuilder.php b/core/modules/user/src/UserListBuilder.php index 5088ff9..5c4e988 100644 --- a/core/modules/user/src/UserListBuilder.php +++ b/core/modules/user/src/UserListBuilder.php @@ -152,7 +152,7 @@ public function buildRow(EntityInterface $entity) { '#items' => $users_roles, ); $row['member_for'] = $this->dateFormatter->formatTimeDiffSince($entity->getCreatedTime()); - $row['access'] = $entity->access->getValue()[0]['value'] ? $this->t('@time ago', array('@time' => $this->dateFormatter->formatTimeDiffSince($entity->getLastAccessedTime()))) : t('never'); + $row['access'] = $entity->getLastAccessedTime() ? $this->t('@time ago', array('@time' => $this->dateFormatter->formatTimeDiffSince($entity->getLastAccessedTime()))) : t('never'); return $row + parent::buildRow($entity); }