Skip to content

Commit

Permalink
import-export-improvements #82 : configurable variations - not a supe…
Browse files Browse the repository at this point in the history
…r attribute error message improvements - code styling Travis CI build fixes
  • Loading branch information
Tadhg Bowe committed Jul 7, 2018
1 parent b98f417 commit 8db836b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ private function identifySuperAttributeError($superAttrCode, $rowNum)

// Does this attribute code exist?
$sourceAttribute = $this->doesSuperAttributeExist($superAttrCode);
if (!is_null($sourceAttribute)) {
if (is_array($sourceAttribute)) {
$codeExists = true;
// Does attribute have the correct settings?
if (isset($sourceAttribute['is_global']) && $sourceAttribute['is_global'] !== '1') {
Expand Down Expand Up @@ -374,8 +374,7 @@ function ($element) use ($superAttrCode) {
);

// Return the first element of the filtered array (if found).
if (count($filteredAttribute))
{
if (count($filteredAttribute)) {
$returnAttributeArray = array_shift($filteredAttribute);
}
}
Expand Down

0 comments on commit 8db836b

Please sign in to comment.