Skip to content
Snippets Groups Projects
Commit ff958f0e authored by Demian Katz's avatar Demian Katz
Browse files

Don't try to encrypt/decrypt empty values.

- Resolves VUFIND-963.
parent 78d29a84
No related merge requests found
......@@ -146,6 +146,11 @@ class User extends ServiceLocatorAwareGateway
*/
protected function encryptOrDecrypt($text, $encrypt = true)
{
// Ignore empty text:
if (empty($text)) {
return $text;
}
// Load encryption key from configuration if not already present:
if (null === $this->encryptionKey) {
$config = $this->getServiceLocator()->getServiceLocator()
......
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