--- share/pnp/application/controllers/ajax.php.orig 2017-08-21 15:52:37 UTC +++ share/pnp/application/controllers/ajax.php @@ -59,7 +59,7 @@ class Ajax_Controller extends System_Controller { if($action == "list"){ $basket = $this->session->get("basket"); - if(is_array($basket) && sizeof($basket) > 0){ + if(is_array($basket) && (!empty($basket))){ foreach($basket as $item){ printf("
  • %s
  • \n", "basket_action_remove", @@ -135,7 +135,7 @@ class Ajax_Controller extends System_Controller { echo "Action $action not known"; } $basket = $this->session->get("basket"); - if(is_array($basket) && sizeof($basket) == 0){ + if(is_array($basket) && empty($basket)){ echo Kohana::lang('common.basket-empty'); }else{ echo "
    \n";