summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorThallisPHP <thallisphp@gmail.com>2012-05-03 21:01:46 +0200
committerThallisPHP <thallisphp@gmail.com>2012-05-03 21:01:46 +0200
commitf074dff71f136860102a6042dccd3ff6db02d9f4 (patch)
tree6b710688af8c241ae0b546fb661f2799738c216e /system/libraries
parent87a4b544da246f10086129da9c5e48e27ee47810 (diff)
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 eee123584..9f258beb3 100644
--- a/system/libraries/Cart.php
+++ b/system/libraries/Cart.php
@@ -244,7 +244,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
{