Skip to content

Commit

Permalink
Fixed php82 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Aug 15, 2023
1 parent a5941cd commit 9b48a81
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ public function indexAction()
{
// save extra params for widgets insertion form
$skipped = $this->getRequest()->getParam('skip_widgets');
$skipped = Mage::getSingleton('widget/widget_config')->decodeWidgetsFromQuery($skipped);
if (is_string($skipped)) {
$skipped = Mage::getSingleton('widget/widget_config')->decodeWidgetsFromQuery($skipped);
}

Mage::register('skip_widgets', $skipped);

$this->loadLayout('empty')->renderLayout();
}

Expand Down

0 comments on commit 9b48a81

Please sign in to comment.