skip decryption for null
This commit is contained in:
parent
a32351ff7e
commit
ea8985d591
1 changed files with 3 additions and 0 deletions
|
@ -332,6 +332,9 @@ Database::addFilter('encrypt',
|
|||
]);
|
||||
},
|
||||
function($value) {
|
||||
if(is_null($value)) {
|
||||
return null;
|
||||
}
|
||||
$value = json_decode($value, true);
|
||||
$key = App::getEnv('_APP_OPENSSL_KEY_V'.$value['version']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue