Skip to content

Commit

Permalink
Fixed issue: Upgrade fails if token attribute column does not physica…
Browse files Browse the repository at this point in the history
…lly exist in participant table anymore
  • Loading branch information
c-schmitz committed Nov 4, 2021
1 parent 5bb70eb commit 814ca5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -5197,7 +5197,7 @@ function decryptParticipantTables450($oDB)
foreach ($tokens as $token) {
$recryptedToken = [];
foreach ($columnEncryptions as $column => $value) {
if ($columnEncryptions[$column]['encrypted'] === 'Y') {
if ($columnEncryptions[$column]['encrypted'] === 'Y' && isset($token[$column])) {
$decryptedTokenColumn = LSActiveRecord::decryptSingleOld($token[$column]);
$recryptedToken[$column] = LSActiveRecord::encryptSingle($decryptedTokenColumn);
}
Expand Down

0 comments on commit 814ca5b

Please sign in to comment.