Skip to content

Instantly share code, notes, and snippets.

View adixon's full-sized avatar

Alan Dixon adixon

View GitHub Profile
@adixon
adixon / patch.diff
Last active January 16, 2019 23:13
diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php
index 4a677da..4a5e712 100644
--- a/CRM/Utils/System/Drupal.php
+++ b/CRM/Utils/System/Drupal.php
@@ -94,10 +94,14 @@ class CRM_Utils_System_Drupal extends CRM_Utils_System_DrupalBase {
public function updateCMSName($ufID, $ufName) {
// CRM-5555
if (function_exists('user_load')) {
- $user = user_load($ufID);
- if ($user->mail != $ufName) {