diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-23 19:29:15 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-05-23 19:29:15 +0200 |
commit | 7d3399ead6857d5b2c7dd60165b85108e159ed7b (patch) | |
tree | 873d67531ddcac1bbc246ff5fef41c46dee07f77 /system | |
parent | 82741441c22c94b695cc0d6aba747d34bca25c1c (diff) | |
parent | f074dff71f136860102a6042dccd3ff6db02d9f4 (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')
-rw-r--r-- | system/libraries/Cart.php | 2 |
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 { |