Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3.7.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannu Pölönen committed Jul 18, 2018
2 parents 88906f7 + 6d5a087 commit 5c7ffee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

### 3.7.4
* Add explicit boolean check for product building

### 3.7.3
* Add missing hcid from customer block and cart meta

Expand Down
7 changes: 6 additions & 1 deletion app/code/community/Nosto/Tagging/Block/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ protected function _toHtml()
) {
return '';
}
return $this->getMetaProduct()->toHtml();
$nostoProduct = $this->getMetaProduct();
if ($nostoProduct instanceof Nosto_AbstractObject) {
return $nostoProduct->toHtml();
} else {
return '';
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function build(
}

$nostoProduct = Mage::getModel('nosto_tagging/meta_product');
if (!$nostoProduct->loadData($product, $store)) {
if ($nostoProduct->loadData($product, $store) === false) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<config>
<modules>
<Nosto_Tagging>
<version>3.7.3</version>
<version>3.7.4</version>
</Nosto_Tagging>
</modules>
<global>
Expand Down

0 comments on commit 5c7ffee

Please sign in to comment.