Skip to content
Snippets Groups Projects
Commit b73e401f authored by Dimitris Bozelos's avatar Dimitris Bozelos
Browse files

Issue #3490573 Fixed PHP warning for unknown variable

parent 6bbcdf11
Branches 1.x
No related merge requests found
......@@ -110,6 +110,7 @@ class KeyCopier {
$this->loadProfile($source_profile_id),
);
$decrypted_data = NULL;
$success = TRUE;
try {
$decrypted_data = $this->encryptService->decrypt(
......@@ -121,7 +122,7 @@ class KeyCopier {
$success = FALSE;
}
if ($decrypted_data !== $data) {
if ($success && $decrypted_data !== $data) {
$success = FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment