浏览代码

Correctif OrderRepository::getUserFavoritePointSale()

develop
Guillaume Bourgeois 1周前
父节点
当前提交
103a6256dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      domain/Order/Order/OrderRepository.php

+ 1
- 1
domain/Order/Order/OrderRepository.php 查看文件

@@ -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);

正在加载...
取消
保存