commit | f074dff71f136860102a6042dccd3ff6db02d9f4 | [log] [tgz] |
---|---|---|
author | ThallisPHP <thallisphp@gmail.com> | Thu May 03 16:01:46 2012 -0300 |
committer | ThallisPHP <thallisphp@gmail.com> | Thu May 03 16:01:46 2012 -0300 |
tree | 6b710688af8c241ae0b546fb661f2799738c216e | |
parent | 87a4b544da246f10086129da9c5e48e27ee47810 [diff] |
Update system/libraries/Cart.php - To enable integrity when using associative arrays
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index eee1235..9f258be 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php
@@ -244,7 +244,7 @@ // 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 {