Skip to content

Commit

Permalink
Only the IP and type are required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Sep 12, 2023
1 parent 072ff28 commit c3eb4d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions application/models/Consents_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ public function save(array $consent): int
public function validate(array $consent)
{
if (
empty($consent['first_name'])
|| empty($consent['last_name'])
|| empty($consent['email'])
|| empty($consent['ip'])
empty($consent['ip'])
|| empty($consent['type'])
)
{
Expand Down

0 comments on commit c3eb4d1

Please sign in to comment.