Explorar el Código

Merge branch 'dev'

master
Guillaume Bourgeois hace 5 años
padre
commit
4666a29469
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. +4
    -3
      common/models/Subscription.php

+ 4
- 3
common/models/Subscription.php Ver fichero

@@ -286,9 +286,10 @@ class Subscription extends ActiveRecordCommon
{
if(is_array($arrayOrders) && count($arrayOrders) > 0) {
foreach($arrayOrders as $order) {
if(($order->id_user == $this->id_user || $order->username == $this->username) &&
$order->id_point_sale == $this->id_point_sale) {
return true ;
if((($order->id_user > 0 && $order->id_user == $this->id_user) ||
(!$order->id_user && $order->username == $this->username)) &&
$order->id_point_sale == $this->id_point_sale) {
return true ;
}
}
}

Cargando…
Cancelar
Guardar