summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-05-23 19:29:15 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-05-23 19:29:15 +0200
commit7d3399ead6857d5b2c7dd60165b85108e159ed7b (patch)
tree873d67531ddcac1bbc246ff5fef41c46dee07f77 /system/libraries
parent82741441c22c94b695cc0d6aba747d34bca25c1c (diff)
parentf074dff71f136860102a6042dccd3ff6db02d9f4 (diff)
Merge pull request #1320 from thallisphp/patch-2
Update system/libraries/Cart.php - To enable integrity when using associative arrays
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Cart.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php
index b73ed5128..827050310 100644
--- a/system/libraries/Cart.php
+++ b/system/libraries/Cart.php
@@ -245,7 +245,7 @@ class CI_Cart {
// This becomes the unique "row ID"
if (isset($items['options']) && count($items['options']) > 0)
{
- $rowid = md5($items['id'].implode('', $items['options']));
+ $rowid = md5($items['id'].serialize($items['options']));
}
else
{