From 518a856f808c31587e78b35fe1175cdc414cdcdc Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Thu, 31 Aug 2023 18:15:22 +0100 Subject: [PATCH] Minor nfc tweak to smart group profile code --- CRM/Contact/BAO/GroupContactCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 631689fa81..d5e7a086e9 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -174,7 +174,7 @@ AND ( if ($startTime) { $took = microtime(TRUE) - $startTime; if ($took > 5) { - Civi::log()->warning("Updating smart group $groupID took over 5s (" . number_format($took, 3) . ")"); + Civi::log()->warning("Updating smart group $groupID took over 5s (" . number_format($took, 3) . "s)"); } } } @@ -736,7 +736,7 @@ ORDER BY gc.contact_id, g.children * @param ?float $startTime * A float from microtime() for when we began work updating this group. */ - private static function updateCacheFromTempTable(CRM_Utils_SQL_TempTable $groupContactsTempTable, array $groupIDs, ?float $startTime): void { + private static function updateCacheFromTempTable(CRM_Utils_SQL_TempTable $groupContactsTempTable, array $groupIDs, ?float $startTime = NULL): void { $tempTable = $groupContactsTempTable->getName(); // @fixme: GROUP BY is here to guard against having duplicate contacts in the temptable. -- 2.25.1