Minor fixes
This commit is contained in:
parent
c9121f6b22
commit
1a2efecfaa
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ class ClientContactRepository extends BaseRepository
|
|||
$client->company->client_contacts()->where('email', $update_contact->email)->update(['password' => $update_contact->password]);
|
||||
}
|
||||
|
||||
$update_contact->email = trim($contact['email']);
|
||||
if(array_key_exists('email', $contact))
|
||||
$update_contact->email = trim($contact['email']);
|
||||
|
||||
$update_contact->save();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue