Only the IP and type are required fields
This commit is contained in:
parent
072ff2862e
commit
c3eb4d1632
1 changed files with 1 additions and 4 deletions
|
@ -60,10 +60,7 @@ class Consents_model extends EA_Model {
|
||||||
public function validate(array $consent)
|
public function validate(array $consent)
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
empty($consent['first_name'])
|
empty($consent['ip'])
|
||||||
|| empty($consent['last_name'])
|
|
||||||
|| empty($consent['email'])
|
|
||||||
|| empty($consent['ip'])
|
|
||||||
|| empty($consent['type'])
|
|| empty($consent['type'])
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue