From 9afd5cb277f097b3fa0e01060e424b477081599b Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 9 Jul 2015 15:27:40 +0200 Subject: [PATCH] Fix specific [skip ci] --- app/Helpers/Csv/Data.php | 2 +- app/Helpers/Csv/Importer.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Helpers/Csv/Data.php b/app/Helpers/Csv/Data.php index f6eca2f145..b58bbfeb57 100644 --- a/app/Helpers/Csv/Data.php +++ b/app/Helpers/Csv/Data.php @@ -247,7 +247,7 @@ class Data */ public function getSpecifix() { - return $this->specifix; + return is_array($this->specifix) ? $this->specifix : []; } /** diff --git a/app/Helpers/Csv/Importer.php b/app/Helpers/Csv/Importer.php index 268fa0bb6d..6cc734fa7f 100644 --- a/app/Helpers/Csv/Importer.php +++ b/app/Helpers/Csv/Importer.php @@ -41,7 +41,7 @@ class Importer /** @var int */ protected $rows = 0; /** @var array */ - protected $specifix; + protected $specifix = []; /** * Used by CsvController. @@ -207,7 +207,7 @@ class Importer */ public function getSpecifix() { - return $this->specifix; + return is_array($this->specifix) ? $this->specifix : []; } /**