bugfix: undefined $keyId

This commit is contained in:
the-djmaze 2024-02-12 22:30:29 +01:00
parent e727c54798
commit de7e9d86d3

View file

@ -44,7 +44,6 @@ class Backup
$oActions = \RainLoop\Api::Actions(); $oActions = \RainLoop\Api::Actions();
$oAccount = $oActions->getMainAccountFromToken(); $oAccount = $oActions->getMainAccountFromToken();
if ($oAccount) { if ($oAccount) {
$keyId = $keyId ? "0x{$keyId}" : \sha1($key);
$dir = $oActions->StorageProvider()->GenerateFilePath( $dir = $oActions->StorageProvider()->GenerateFilePath(
$oAccount, $oAccount,
\RainLoop\Providers\Storage\Enumerations\StorageType::PGP, \RainLoop\Providers\Storage\Enumerations\StorageType::PGP,