mirror of
https://github.com/moparisthebest/user_sql
synced 2024-11-10 11:25:05 -05:00
Fix another bug in searching for users!
This commit is contained in:
parent
3bee033569
commit
fc64d5cc90
@ -218,7 +218,10 @@ class OC_USER_SQL extends OC_User_Backend implements OC_User_Interface {
|
||||
OC_Log::write('OC_USER_SQL', "Preparing query: $query", OC_Log::DEBUG);
|
||||
$result = $this->db->prepare($query);
|
||||
if($search != '')
|
||||
$result->bindParam(":search", "%$search%");
|
||||
{
|
||||
$search = "%$search%";
|
||||
$result->bindParam(":search", $search);
|
||||
}
|
||||
OC_Log::write('OC_USER_SQL', "Executing query...", OC_Log::DEBUG);
|
||||
if(!$result->execute())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user