Commit fa069327 authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Error, double execute !

parent c0c02c5b
......@@ -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;
}
......
Supports Markdown
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