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
AND d.id='".$transaction."'");
$result = $stmt->fetch(\PDO::FETCH_ASSOC);
if (!$result) {
if ($testing){
$cumul = rand(50000, 70000);
} else {
if ($testing) {
$cumul = rand(50000, 70000);
} else {
// don non trouvé en statut 101. On le crée (la banque à raison)
// statut = cumul
$f3->get('container')['command_handler']
......@@ -1435,7 +1435,7 @@ class Admin extends Controller
// Et on le récupère
$cumul = $db->lastInsertId();
$don = $f3->get('container')['donation_finder']->findById($cumul);
};
};
} else {
$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