Commit ca56edcc authored by okhin's avatar okhin 🚴

CS-Fix

parent ccd268bf
Pipeline #2414 passed with stages
in 22 seconds
...@@ -1418,9 +1418,9 @@ class Admin extends Controller ...@@ -1418,9 +1418,9 @@ class Admin extends Controller
AND d.id='".$transaction."'"); AND d.id='".$transaction."'");
$result = $stmt->fetch(\PDO::FETCH_ASSOC); $result = $stmt->fetch(\PDO::FETCH_ASSOC);
if (!$result) { if (!$result) {
if ($testing){ if ($testing) {
$cumul = rand(50000, 70000); $cumul = rand(50000, 70000);
} else { } else {
// don non trouvé en statut 101. On le crée (la banque à raison) // don non trouvé en statut 101. On le crée (la banque à raison)
// statut = cumul // statut = cumul
$f3->get('container')['command_handler'] $f3->get('container')['command_handler']
...@@ -1435,7 +1435,7 @@ class Admin extends Controller ...@@ -1435,7 +1435,7 @@ class Admin extends Controller
// Et on le récupère // Et on le récupère
$cumul = $db->lastInsertId(); $cumul = $db->lastInsertId();
$don = $f3->get('container')['donation_finder']->findById($cumul); $don = $f3->get('container')['donation_finder']->findById($cumul);
}; };
} else { } else {
$cumul = $result['id']; $cumul = $result['id'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment