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
legi
soft
gestex
Commits
fa069327
Commit
fa069327
authored
Oct 03, 2020
by
Gabriel Moreau
Browse files
Error, double execute !
parent
c0c02c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/db-functions.php
View file @
fa069327
...
...
@@ -446,7 +446,7 @@ function get_user_listall_by_logged_level($pdo, $logged_level) {
function
get_user_listshort_with_right
(
$pdo
,
$level_min
=
1
)
{
$sql
=
'SELECT id, nom FROM users WHERE valid = 1 and level >= ?;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
(
execute
(
array
(
$level_min
));
$stmt
->
execute
(
array
(
$level_min
));
$result_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
return
$result_fetch
;
}
...
...
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