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
678e4014
Commit
678e4014
authored
Nov 15, 2018
by
Okhin
Browse files
Linting
parent
fb136c4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
678e4014
...
...
@@ -100,7 +100,8 @@ class Admin extends Controller
$f3
->
set
(
'block_content'
,
'backend/dons.html'
);
}
public
function
validate
(
$f3
,
$args
)
{
public
function
validate
(
$f3
,
$args
)
{
$id
=
''
;
$error
=
''
;
$db
=
$f3
->
get
(
'DB'
);
...
...
@@ -132,7 +133,8 @@ class Admin extends Controller
}
if
(
$error
!=
''
)
{
}
else
{
$db
->
query
(
"UPDATE dons
$db
->
query
(
"UPDATE dons
SET status =
$status
WHERE id = "
.
\
Utils
::
asl
(
$id
)
);
...
...
@@ -145,7 +147,8 @@ class Admin extends Controller
}
public
function
invalidate
(
$f3
,
$args
)
{
public
function
invalidate
(
$f3
,
$args
)
{
$id
=
''
;
$error
=
''
;
$db
=
$f3
->
get
(
'DB'
);
...
...
@@ -180,7 +183,8 @@ class Admin extends Controller
}
if
(
$error
!=
''
)
{
}
else
{
$db
->
query
(
"UPDATE dons
$db
->
query
(
"UPDATE dons
SET status =
$status
WHERE id = "
.
\
Utils
::
asl
(
$id
)
);
...
...
@@ -703,7 +707,8 @@ class Admin extends Controller
$f3
->
set
(
'block_content'
,
'backend/contrepartie.html'
);
}
public
function
adresse
(
$f3
,
$args
)
{
public
function
adresse
(
$f3
,
$args
)
{
$id
=
''
;
$form_name
=
''
;
$user_id
=
''
;
...
...
@@ -720,7 +725,8 @@ class Admin extends Controller
WHERE user_id =
$user_id
"
);
$db
->
query
(
"UPDATE contreparties SET adresse_id = NULL
WHERE user_id =
$user_id
"
);
$db
->
query
(
"DELETE FROM adresses
$db
->
query
(
"DELETE FROM adresses
WHERE id =
$id
"
);
}
else
{
...
...
@@ -733,7 +739,8 @@ class Admin extends Controller
$codepostal
=
\
Utils
::
asl
(
$f3
->
get
(
'POST.codepostal'
));
$ville
=
\
Utils
::
asl
(
$f3
->
get
(
'POST.ville'
));
$pays
=
\
Utils
::
asl
(
$f3
->
get
(
'POST.pays'
));
$db
->
query
(
"UPDATE adresses SET
$db
->
query
(
"UPDATE adresses SET
nom = '"
.
$nom
.
"',
adresse = '"
.
$adresse
.
"',
adresse2 = '"
.
$adresse2
.
"',
...
...
src/LQDN/Handler/CounterpartHandler.php
View file @
678e4014
...
...
@@ -25,8 +25,10 @@ class CounterpartHandler
public
function
handleCounterpartDeleteCommand
(
CounterpartDeleteCommand
$command
)
{
$counterpartId
=
$command
->
getCounterpartId
();
$this
->
connection
->
executeUpdate
(
"DELETE FROM counterparts WHERE id = :id"
,
[
'id'
=>
$counterpartId
()]);
$this
->
connection
->
executeUpdate
(
"DELETE FROM counterparts WHERE id = :id"
,
[
'id'
=>
$counterpartId
()]
);
}
/**
...
...
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