Update CartController, use redirect instead of 404 page when no data is found on store function

This commit is contained in:
DariusIII
2018-04-27 11:14:39 +02:00
parent 2552ed7851
commit 656be9bdcb
3 changed files with 53 additions and 26 deletions
+2 -1
View File
@@ -43,10 +43,11 @@ class CartController extends BasePageController
{
$this->setPrefs();
$guids = explode(',', $id);
$data = Release::getByGuid($guids);
if (! $data) {
$this->show404();
return redirect('/cart/index');
}
foreach ($data as $d) {