Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
ca56edcc
Commit
ca56edcc
authored
Jan 28, 2019
by
Okhin
Browse files
CS-Fix
parent
ccd268bf
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
ca56edcc
...
...
@@ -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'
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment