Commit 21bd2cce42f9d3f507bd70632d70d2a1709d6dd0

Authored by Alex Savenko
1 parent 273cb8db

die fix

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/app/frontend/controllers/MenuController.php
@@ -475,8 +475,8 @@ class MenuController extends \controllers\ControllerBase @@ -475,8 +475,8 @@ class MenuController extends \controllers\ControllerBase
475 475
476 if( in_array( $item_id, $item_id_in_cart ) ) 476 if( in_array( $item_id, $item_id_in_cart ) )
477 { 477 {
478 - //die( json_encode( 0 ) );  
479 - die( json_encode( [0, 'This item already is already in basket'] ) ); 478 + die( json_encode( 0 ) );
  479 + //die( json_encode( [0, 'This item already is already in basket'] ) );
480 } 480 }
481 481
482 $in_cart[] = 482 $in_cart[] =
@@ -506,8 +506,8 @@ class MenuController extends \controllers\ControllerBase @@ -506,8 +506,8 @@ class MenuController extends \controllers\ControllerBase
506 506
507 } 507 }
508 508
509 - //die (json_encode($count));  
510 - die( json_encode('Count items in basket: '.$count) ); 509 + die (json_encode($count));
  510 + //die( json_encode('Count items in basket: '.$count) );
511 511
512 } 512 }
513 513