Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 24, 2021
2 parents 063a4b7 + 20991ad commit 2409201
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -5228,7 +5228,7 @@ function decryptArchivedTables450($oDB)
// recrypt tokens
if ($archivedTableSettings['tbl_type'] === 'token') {
// skip if the encryption status is unknown
if (isset($archivedTableSettingsProperties) && $archivedTableSettingsProperties[0] !== 'unknown') {
if (!empty($archivedTableSettingsProperties) && $archivedTableSettingsProperties[0] !== 'unknown') {
$tokenencryptionoptions = $archivedTableSettingsProperties;

// default attributes
Expand All @@ -5237,7 +5237,7 @@ function decryptArchivedTables450($oDB)
}
}
// skip if the encryption status is unknown
if (isset($archivedTableSettingsAttributes) && $archivedTableSettingsAttributes[0] !== 'unknown') {
if (!empty($archivedTableSettingsAttributes) && $archivedTableSettingsAttributes[0] !== 'unknown') {
// find custom attribute column names
$table = tableExists("{{{$archivedTableSettings['tbl_name']}}}");
if (!$table) {
Expand Down Expand Up @@ -5277,7 +5277,7 @@ function decryptArchivedTables450($oDB)
}

// recrypt responses // skip if the encryption status is unknown
if ($archivedTableSettings['tbl_type'] === 'response' && isset($archivedTableSettingsProperties) && $archivedTableSettingsProperties[0] !== 'unknown') {
if ($archivedTableSettings['tbl_type'] === 'response' && !empty($archivedTableSettingsProperties) && $archivedTableSettingsProperties[0] !== 'unknown') {
$responsesCount = $oDB->createCommand()
->select('count(*)')
->from("{{{$archivedTableSettings['tbl_name']}}}")
Expand Down

0 comments on commit 2409201

Please sign in to comment.