From ea77a662ad65fd605f13a68c6a100c7b5d984a7f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 19 Oct 2014 21:19:40 +0200 Subject: [PATCH] Fixed searching for liked/disliked posts --- src/Dao/PostDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dao/PostDao.php b/src/Dao/PostDao.php index 6e5378b0..70ff3d39 100644 --- a/src/Dao/PostDao.php +++ b/src/Dao/PostDao.php @@ -164,7 +164,7 @@ class PostDao extends AbstractDao implements ICrudDao AND scores.score = ?)'; if ($requirement->isnegated()) $sql = 'NOT ' . $sql; - $query->where($sql, $userName, $score); + $query->where($sql, [$userName, $score]); return; }