Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Fix for issue #144#145

Open
kanevbg wants to merge 2 commits intoInchoo:developfrom
kanevbg:issue-144
Open

Fix for issue #144#145
kanevbg wants to merge 2 commits intoInchoo:developfrom
kanevbg:issue-144

Conversation

@kanevbg
Copy link
Copy Markdown

@kanevbg kanevbg commented Jul 13, 2018

No description provided.

$session = Mage::getSingleton('checkout/session');

$urls = $session->getWishlistPendingUrls();
if (!is_array($urls) && !($urls instanceof Countable) && !$urls) $session->setWishlistIds([]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should do $session->setWishlistPendingUrls([]); instead.

if (!is_array($urls) && !($urls instanceof Countable) && !$urls) $session->setWishlistIds([]);

$wishlistIds = $session->getWishlistIds();
if (!is_array($wishlistIds) && !($wishlistIds instanceof Countable) && !$wishlistIds) $session->setWishlistPendingUrls([]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should do $session->setWishlistIds([]) instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants