Browse Source

Correctif OrderRepository::getUserFavoritePointSale()

develop
Guillaume Bourgeois 6 days ago
parent
commit
103a6256dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      domain/Order/Order/OrderRepository.php

+ 1
- 1
domain/Order/Order/OrderRepository.php View File

@@ -487,7 +487,7 @@ class OrderRepository extends AbstractRepository
$pointSale = null;
$arrayUserPointSale = $this->userPointSaleRepository->findUserPointSalesByUser($user, $distribution);

if (count($arrayUserPointSale) == 1 && $arrayUserPointSale[0]->id_point_sale) {
if (count($arrayUserPointSale) == 1 && isset($arrayUserPointSale[0]) && $arrayUserPointSale[0]->id_point_sale) {
$pointSale = $this->pointSaleRepository->findOnePointSaleById($arrayUserPointSale[0]->id_point_sale);
} else {
$lastOrder = $this->findOneOrderLastByUser($user);

Loading…
Cancel
Save