Skip to content

Commit

Permalink
Fix call to function CRM_Utils_String::createRandom by ensuring that …
Browse files Browse the repository at this point in the history
…the length is the first parameter not 2nd
  • Loading branch information
seamuslee001 committed May 29, 2021
1 parent ff2fb35 commit 81d4647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CRM_Utils_Request {
*/
public static function id() {
if (!isset(\Civi::$statics[__CLASS__]['id'])) {
\Civi::$statics[__CLASS__]['id'] = uniqid() . CRM_Utils_String::createRandom(CRM_Utils_String::ALPHANUMERIC, 4);
\Civi::$statics[__CLASS__]['id'] = uniqid() . CRM_Utils_String::createRandom(4, CRM_Utils_String::ALPHANUMERIC);
}
return \Civi::$statics[__CLASS__]['id'];
}
Expand Down

0 comments on commit 81d4647

Please sign in to comment.