Fixed JSON syntax
This commit is contained in:
parent
c8b6a18939
commit
429ac1098c
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ class V06 extends Migration
|
|||
break;
|
||||
case Database::SYSTEM_COLLECTION_KEYS:
|
||||
if ($document->getAttribute('secret', null)) {
|
||||
$json = \json_decode($document->getAttribute('secret'));
|
||||
if ($json->{'data'} || $json->{'method'} || $json->{'iv'} || $json->{'tag'} || $json->{'version'})
|
||||
$json = \json_decode($document->getAttribute('secret'), true);
|
||||
if ($json['data'] || $json['method'] || $json['iv'] || $json['tag'] || $json['version'])
|
||||
{
|
||||
Console::log('Secret already encrypted. Skipped: ' . $document->getId());
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue