EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
ref
Yuri Kuznetsov70c28d9a78f4
diff --git a/application/Espo/Core/Formula/Functions/ExtGroup/SecretGroup/GetType.php b/application/Espo/Core/Formula/Functions/ExtGroup/SecretGroup/GetType.phpindex 7985b6058a..8cc7f73d95 100644--- a/application/Espo/Core/Formula/Functions/ExtGroup/SecretGroup/GetType.php+++ b/application/Espo/Core/Formula/Functions/ExtGroup/SecretGroup/GetType.php@@ -50,16 +50,16 @@ class GetType implements Functhrow TooFewArguments::create(1);}- $string = $arguments[0];+ $name = $arguments[0];- if (!is_string($string)) {+ if (!is_string($name)) {throw BadArgumentType::create(1, 'string');}- $secret = $this->secretProvider->get($string);+ $secret = $this->secretProvider->get($name);if ($secret === null) {- throw new Error("No secret '$string'.");+ throw new Error("No secret '$name'.");}return $secret;