diff --git a/app/Jobs/Common/CreateContact.php b/app/Jobs/Common/CreateContact.php index 6b30924b6..b136766b3 100644 --- a/app/Jobs/Common/CreateContact.php +++ b/app/Jobs/Common/CreateContact.php @@ -27,7 +27,7 @@ class CreateContact extends Job */ public function handle() { - if (!empty($this->request->input('create_user'))) { + if ($this->request->get('create_user', 'false') === 'true') { $this->createUser(); } diff --git a/app/Jobs/Common/UpdateContact.php b/app/Jobs/Common/UpdateContact.php index be513a71a..504228e7d 100644 --- a/app/Jobs/Common/UpdateContact.php +++ b/app/Jobs/Common/UpdateContact.php @@ -33,7 +33,7 @@ class UpdateContact extends Job { $this->authorize(); - if (!empty($this->request->input('create_user'))) { + if ($this->request->get('create_user', 'false') === 'true') { $this->createUser(); }