From c3eb4d1632762bda0b6b097c1b64f348143f5d45 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 12 Sep 2023 17:17:12 +0300 Subject: [PATCH] Only the IP and type are required fields --- application/models/Consents_model.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/models/Consents_model.php b/application/models/Consents_model.php index 7800a6bf..61db0f4b 100644 --- a/application/models/Consents_model.php +++ b/application/models/Consents_model.php @@ -60,10 +60,7 @@ class Consents_model extends EA_Model { 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']) ) {