From ec571b00679f04f39a38b35b9ea4fbb353a29e0d Mon Sep 17 00:00:00 2001 From: Wouter H Date: Mon, 10 Feb 2020 13:29:07 +0100 Subject: [PATCH] Put back the original line Putted back the original line as suggested by @demeritcowboy --- CRM/Utils/System/Drupal8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 5bb9933df0..2b84c9c9a0 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -166,7 +166,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { $mail = $params['mail']; $user = entity_create('user'); - $user->setEmail($params[$key]); + $user->setEmail($mail); // This checks for both email uniqueness. $violations = iterator_to_array($user->validate()); -- 2.25.1