Skip to content

Commit 646a480

Browse files
authored
Fixed a notice with "session validator data" in onepage checkout (#2318)
1 parent 92a3b4f commit 646a480

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/code/core/Mage/Checkout/Model/Type/Onepage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ protected function _prepareNewCustomerQuote()
730730

731731
Mage::helper('core')->copyFieldset('checkout_onepage_quote', 'to_customer', $quote, $customer);
732732
$customer->setPassword($customer->decryptPassword($quote->getPasswordHash()));
733-
$passwordCreatedTime = $this->_checkoutSession->getData('_session_validator_data')['session_expire_timestamp']
733+
$passwordCreatedTime = $this->_checkoutSession->getSessionValidatorData()['session_expire_timestamp']
734734
- Mage::getSingleton('core/cookie')->getLifetime();
735735
$customer->setPasswordCreatedAt($passwordCreatedTime);
736736
$quote->setCustomer($customer)

app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

+8
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,14 @@ public function getValidatorData()
570570

571571
return $parts;
572572
}
573+
574+
/**
575+
* @return array
576+
*/
577+
public function getSessionValidatorData()
578+
{
579+
return $_SESSION[self::VALIDATOR_KEY];
580+
}
573581

574582
/**
575583
* Regenerate session Id

0 commit comments

Comments
 (0)