diff options
author | brantje <brantje@gmail.com> | 2016-12-29 02:07:27 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-12-29 14:29:48 +0300 |
commit | 9ab74be344d3f7eaacd66c24727180aaacb6e317 (patch) | |
tree | 3e3b35514227fcab2f5b2a32f98979ea996f1ea3 /lib | |
parent | 80973c77a852e3696d2f759c9be15d93bb6704f4 (diff) |
Check if shared_key exists
Remove value set by php
Replace DoesNotExistException with Exeption
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/CredentialMapper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Db/CredentialMapper.php b/lib/Db/CredentialMapper.php index 32303ca8..5d3443f6 100644 --- a/lib/Db/CredentialMapper.php +++ b/lib/Db/CredentialMapper.php @@ -131,7 +131,9 @@ class CredentialMapper extends Mapper { $credential->setCustomFields($raw_credential['custom_fields']); $credential->setOtp($raw_credential['otp']); $credential->setHidden($raw_credential['hidden']); - $credential->setSharedKey($raw_credential['shared_key']); + if(isset($raw_credential['shared_key'])) { + $credential->setSharedKey($raw_credential['shared_key']); + } return parent::insert($credential); } |