Quellcode durchsuchen

Correctif

refactoring
Guillaume Bourgeois vor 1 Jahr
Ursprung
Commit
dd66dba423
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. +5
    -4
      producer/controllers/OrderController.php

+ 5
- 4
producer/controllers/OrderController.php Datei anzeigen

@@ -746,10 +746,11 @@ class OrderController extends ProducerBaseController
$producerManager = $this->getProducerManager();

$user = GlobalParam::getCurrentUser();
$userProducer = $userProducerManager->findOneUserProducer($user, $producer);

if ($user && !$userProducer) {
$userProducer = $producerManager->addUser($user, $producer);
if($user) {
$userProducer = $userProducerManager->findOneUserProducer($user, $producer);
if (!$userProducer) {
$userProducer = $producerManager->addUser($user, $producer);
}
}

$jsonUser = false;

Laden…
Abbrechen
Speichern