Fixed backticks in PostSearchParser

This commit is contained in:
Marcin Kurczewski 2014-05-05 17:12:49 +02:00
parent 8c3feaeccf
commit 9ad1507b53

View file

@ -93,7 +93,7 @@ class PostSearchParser extends AbstractSearchParser
return new Sql\ExistsFunctor($innerStmt);
}
elseif (in_array($key, ['submit', 'upload', `uploads`, 'uploader', 'uploaded']))
elseif (in_array($key, ['submit', 'upload', 'uploads', 'uploader', 'uploaded']))
{
$user = UserModel::findByNameOrEmail($value);
return new Sql\EqualsFunctor('post.uploader_id', new Sql\Binding($user->id));