Joomla::synchronizeUsers - Fix notice due to old style reference
authorTim Otten <totten@civicrm.org>
Sat, 20 Feb 2021 01:18:16 +0000 (17:18 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 26 Feb 2021 00:09:02 +0000 (16:09 -0800)
This fixes a PHP notice when synchronizing all users/contacts:

PHP Notice:  Only variables should be assigned by reference in ...CRM/Utils/System/Joomla.php:855

CRM/Utils/System/Joomla.php

index 823fef336072bd99bb593c2fa6605b0517e9a594..7651aeb82392fc4d6f81bdfa3cc0a5dc4a450fd8 100644 (file)
@@ -842,7 +842,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
     $mail = 'email';
     $name = 'name';
 
-    $JUserTable = &JTable::getInstance('User', 'JTable');
+    $JUserTable = JTable::getInstance('User', 'JTable');
 
     $db = $JUserTable->getDbo();
     $query = $db->getQuery(TRUE);