1
0
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:
Andreas Boehler 2012-12-21 14:16:35 +01:00
parent 3bee033569
commit fc64d5cc90

View File

@ -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())
{