Unverified Commit b185cfd0 authored by Julien1498's avatar Julien1498 Committed by GitHub
Browse files

Merge pull request #108 from loicfgc/patch-4

🐞 Groups from AD are not suggested in the user add form
parents e090c01f a3af548f
......@@ -25,7 +25,7 @@ include("../../include/function.php");
// Search function for Jquery an exit
if(isset($_GET['term']) && isset($_GET['request']) && $_GET['request'] == "search_group") {
$result=sql($database_eonweb,"select * from ldap_groups_extended where group_name LIKE '%?%' order by group_name", array($_GET['term']));
$result=sql($database_eonweb,"select * from ldap_groups_extended where group_name LIKE ? order by group_name;", array("%".$_GET['term']."%"));
$array = array();
foreach($result as $line){
......
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