From d1b47a06416b7d4e13a60ce38bccd78063d8618f Mon Sep 17 00:00:00 2001 From: spalmstr Date: Thu, 23 May 2019 16:56:35 +0100 Subject: [PATCH] Joomla_11 Patch CRM/Contact/BAO/Contact/Utils.php --- CRM/Contact/BAO/Contact/Utils.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index 81a93b376c..7c36b4c5ae 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -228,8 +228,9 @@ WHERE id IN ( $idString ) $inputLF = CRM_Utils_Array::value(2, $input); $check = self::generateChecksum($contactID, $inputTS, $inputLF); - - if (!hash_equals($check, $inputCheck)) { + // Joomla_11 - If $inputcheck is null without explicitly casting to a string + // you get an error. + if (!hash_equals($check, (string) $inputCheck)) { return FALSE; } -- 2.25.1