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
1 changed files with 4 additions and 1 deletions

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