We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) 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