From 2632f730d1c5d99b53b56c675cb47dc25dd71ab4 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 7 Nov 2018 22:36:58 -0800 Subject: [PATCH] =?UTF-8?q?Sets=20activated=20to=200=20in=20UserImporter?= =?UTF-8?q?=20if=20the=20activated=20column=20isn=E2=80=99t=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Importer/UserImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Importer/UserImporter.php b/app/Importer/UserImporter.php index 5d5461944e..bd5bbc1d5b 100644 --- a/app/Importer/UserImporter.php +++ b/app/Importer/UserImporter.php @@ -47,7 +47,7 @@ class UserImporter extends ItemImporter $this->item['email'] = $this->findCsvMatch($row, 'email'); $this->item['phone'] = $this->findCsvMatch($row, 'phone_number'); $this->item['jobtitle'] = $this->findCsvMatch($row, 'jobtitle'); - $this->item['activated'] = $this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')); + $this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0; \Log::debug('UserImporter.php Activated: '.$this->findCsvMatch($row, 'activated')); \Log::debug('UserImporter.php Activated fetchHumanBoolean: '. $this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')));