Put back the original line
authorWouter H <wouter.hechtermans@calibrate.be>
Mon, 10 Feb 2020 12:29:07 +0000 (13:29 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 12:29:07 +0000 (13:29 +0100)
Putted back the original line as suggested by @demeritcowboy

CRM/Utils/System/Drupal8.php

index 5bb9933df020c864d6c541b9e4bcb1c8cc820237..2b84c9c9a0be2fa7cd9a427e29cccc9d31bb7889 100644 (file)
@@ -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());