Skip to content

Commit

Permalink
Merge pull request #14312 from spalmstr/Joomla_11
Browse files Browse the repository at this point in the history
dev/joomla#11 Fix php warning when viewing profiles
  • Loading branch information
eileenmcnaughton authored May 23, 2019
2 parents ee69d5a + d1b47a0 commit a8bd88a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CRM/Contact/BAO/Contact/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ public static function validChecksum($contactID, $inputCheck) {
$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;
}

Expand Down

0 comments on commit a8bd88a

Please sign in to comment.