1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Fixes for encrypted casts

This commit is contained in:
David Bomba 2023-05-16 18:19:04 +10:00
parent 04fa9dde8c
commit aec715fbfd

View File

@ -16,8 +16,8 @@ use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
class EncryptedCast implements CastsAttributes
{
public function get($model, string $key, $value, array $attributes)
{nlog($value);
return !$value ? null : decrypt($value);
{
return ! is_null($value) ? decrypt($value) : null;
}
public function set($model, string $key, $value, array $attributes)