Updated CartController.php

Included checkattr