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