projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a75f81d
)
Correct check
author
Wouter H
<wouter.hechtermans@calibrate.be>
Sat, 1 Feb 2020 12:05:09 +0000
(13:05 +0100)
committer
GitHub
<noreply@github.com>
Sat, 1 Feb 2020 12:05:09 +0000
(13:05 +0100)
Apply the correct check according to @demeritcowboy
CRM/Utils/System/Drupal8.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/System/Drupal8.php
b/CRM/Utils/System/Drupal8.php
index e52bcb31a6e6b47e394cb73365a2bb257648ed27..5bb9933df020c864d6c541b9e4bcb1c8cc820237 100644
(file)
--- a/
CRM/Utils/System/Drupal8.php
+++ b/
CRM/Utils/System/Drupal8.php
@@
-162,8
+162,8
@@
class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
}
// And if we are given an email address, let's check to see if it already exists.
- if (!empty($params[
$emailName]) || !empty($params[
'mail'])) {
- $
key = (!empty($params[$emailName])) ? $emailName : 'mail'
;
+ if (!empty($params['mail'])) {
+ $
mail = $params['mail']
;
$user = entity_create('user');
$user->setEmail($params[$key]);