Skip to content

Commit

Permalink
Fix "Variable might not be defined" PHPStan error (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev authored Jul 13, 2022
1 parent 1837f74 commit d91170b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ protected function _create(array $data)
->save();

try {
$oldStore = Mage::getDesign()->getStore();
$oldArea = Mage::getDesign()->getArea();

if ($notifyCustomer && $comment) {
$oldStore = Mage::getDesign()->getStore();
$oldArea = Mage::getDesign()->getArea();
Mage::getDesign()->setStore($order->getStoreId());
Mage::getDesign()->setArea('frontend');
}
Expand Down

0 comments on commit d91170b

Please sign in to comment.