scratch that niche!

Second Errata Notice on Professional CodeIgniter

On page 110, there is this code in the function updateCart:


if (count($fullproduct)){
if (isset($cart[$productid])){
$prevct = $cart[$productid]['count'];
$prevname = $cart[$productid]['name'];
$prevname = $cart[$productid]['price'];

The second $prevname should be $prevprice, like this:


if (count($fullproduct)){
if (isset($cart[$productid])){
$prevct = $cart[$productid]['count'];
$prevname = $cart[$productid]['name'];
$prevprice = $cart[$productid]['price'];

No comments yet. Be the first.

Leave a reply