mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
Update CartController, use redirect instead of 404 page when no data is found on store function
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user