Skip to content

Commit

Permalink
Update app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Feb 27, 2023
1 parent 64cb770 commit 3be3a6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getRoot($parentNodeCategory = null, $recursionLevel = 3)
->load(null, $recursionLevel);

$category = $this->getCategory();
if (is_object($category) and $category->getId()) {
if (is_object($category) && $category->getId()) {
$tree->loadEnsuredNodes($category, $tree->getNodeById($rootId));
}

Expand Down

0 comments on commit 3be3a6d

Please sign in to comment.