Skip to content
GitLab
Menu
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
727bd396
Commit
727bd396
authored
Nov 15, 2018
by
Okhin
Browse files
CS fix
parent
577fe9ca
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/controller/bank.php
View file @
727bd396
...
@@ -158,8 +158,8 @@ class Bank extends Controller
...
@@ -158,8 +158,8 @@ class Bank extends Controller
// Ajout du nouveau don au cumul actuel
// Ajout du nouveau don au cumul actuel
if
(
$status
!=
101
)
{
if
(
$status
!=
101
)
{
$cb_log
->
write
(
"Ajout de "
.
$don
[
'somme'
]);
$cb_log
->
write
(
"Ajout de "
.
$don
[
'somme'
]);
$f3
->
get
(
'container'
)[
'command_handler'
]
->
handle
(
new
UpdateUserTotalCommand
(
$user
[
'id'
],
(
int
)
$user
[
'total'
]
+
$don
[
'somme'
]))
$f3
->
get
(
'container'
)[
'command_handler'
]
->
handle
(
new
UpdateUserTotalCommand
(
$user
[
'id'
],
(
int
)
$user
[
'total'
]
+
$don
[
'somme'
]))
;
$f3
->
get
(
'container'
)[
'command_handler'
]
->
handle
(
new
UpdateUserCumulCommand
(
$user
[
'id'
],
(
int
)
$user
[
'cumul'
]
+
$don
[
'cumul'
]))
$f3
->
get
(
'container'
)[
'command_handler'
]
->
handle
(
new
UpdateUserCumulCommand
(
$user
[
'id'
],
(
int
)
$user
[
'cumul'
]
+
$don
[
'cumul'
]))
;
}
}
$result
=
$db
->
query
(
"SELECT cumul FROM users WHERE id='"
.
$don
[
'user_id'
]
.
"'"
);
$result
=
$db
->
query
(
"SELECT cumul FROM users WHERE id='"
.
$don
[
'user_id'
]
.
"'"
);
$cumul
=
$result
->
fetch
(
\
PDO
::
FETCH_ASSOC
);
$cumul
=
$result
->
fetch
(
\
PDO
::
FETCH_ASSOC
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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