Skip to content

Commit

Permalink
MAGETWO-66546: magento/magento2: #8765 #8778
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Mar 22, 2017
2 parents 45c1bba + 6bb4c8a commit cf70a83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,6 @@ public function getAttributeRawValue($entityId, $attribute, $store)
$attributesData = $_data[1];
}

return $attributesData ? $attributesData : false;
return $attributesData === false ? false : $attributesData;
}
}

1 comment on commit cf70a83

@daniloargentiero
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    if (sizeof($attributesData) == 1) {
        $_data = each($attributesData);
        $attributesData = $_data[1];
    } else if (sizeof($attributesData) == 0) {
        $attributesData = false;
    }

    return $attributesData !== false ? $attributesData : false;

Please sign in to comment.