Skip to content

Commit 9b15887

Browse files
Return first raw value if a single attribute was requested.
1 parent b2a336c commit 9b15887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/core/Mage/Catalog/Model/Resource/Abstract.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,10 @@ public function getAttributeRawValue($entityId, $attribute, $store)
678678

679679
if (sizeof($attributesData) == 1) {
680680
$_data = each($attributesData);
681-
$attributesData = $_data[1];
681+
return $_data[1];
682682
}
683683

684-
return ($attributesData || $attributesData == '0') ? $attributesData : false;
684+
return $attributesData ? $attributesData : false;
685685
}
686686

687687
/**

0 commit comments

Comments
 (0)