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

Fix for issue #144 #145

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Fix for issue #144 #145

wants to merge 2 commits into from

Conversation

kanevbg
Copy link

@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([]);

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([]);

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