mirror of
https://github.com/moparisthebest/user_sql
synced 2024-08-13 16:53:48 -04: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);
|
OC_Log::write('OC_USER_SQL', "Preparing query: $query", OC_Log::DEBUG);
|
||||||
$result = $this->db->prepare($query);
|
$result = $this->db->prepare($query);
|
||||||
if($search != '')
|
if($search != '')
|
||||||
$result->bindParam(":search", "%$search%");
|
{
|
||||||
|
$search = "%$search%";
|
||||||
|
$result->bindParam(":search", $search);
|
||||||
|
}
|
||||||
OC_Log::write('OC_USER_SQL', "Executing query...", OC_Log::DEBUG);
|
OC_Log::write('OC_USER_SQL', "Executing query...", OC_Log::DEBUG);
|
||||||
if(!$result->execute())
|
if(!$result->execute())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user