We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit eceac425 authored by Marcos Garcia's avatar Marcos Garcia Committed by GitHub

PW-1441: Improve required settings UI (#506)

parent a0b24485
......@@ -31,6 +31,9 @@ class ApiKeyEnding implements CommentInterface
public function getCommentText($elementValue)
{
$apiKeyEnding = substr($this->encryptor->decrypt(trim($elementValue)), -4);
return "API key ending with: <strong>$apiKeyEnding</strong>";
if (!$apiKeyEnding) {
return '';
}
return "Key stored ending in <strong>$apiKeyEnding</strong>";
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment