fixed decoder

This commit is contained in:
Torsten Schulz
2023-12-27 11:22:23 +01:00
parent 4be31c493a
commit 84d7b7e5c3

View File

@@ -426,7 +426,7 @@ class Renderer {
} }
protected function decode(string $toDecode, string $salt): string { protected function decode(string $toDecode, string $salt): string {
return openssl_decrypt($toDecode, 'aes-256-cbc', $this->encryptionKey, 0, $salt); return $toDecode ? openssl_decrypt($toDecode, 'aes-256-cbc', $this->encryptionKey, 0, $salt) : '';
} }