From 16e4a4a7e7c0e8251954f77fe600e098ca6df3f0 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 19 Oct 2014 21:15:25 +0200 Subject: [PATCH] Fixed fpdo leftovers --- src/Dao/PostDao.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Dao/PostDao.php b/src/Dao/PostDao.php index ffee06cb..6e5378b0 100644 --- a/src/Dao/PostDao.php +++ b/src/Dao/PostDao.php @@ -136,19 +136,19 @@ class PostDao extends AbstractDao implements ICrudDao elseif ($requirement->getType() === PostFilter::REQUIREMENT_FAVORITE) { - $query->innerJoin('favorites _fav ON _fav.postId = posts.id'); - $query->innerJoin('users favoritedBy ON favoritedBy.id = _fav.userId'); + $query->innerJoin('favorites _fav', '_fav.postId = posts.id'); + $query->innerJoin('users favoritedBy', 'favoritedBy.id = _fav.userId'); } elseif ($requirement->getType() === PostFilter::REQUIREMENT_COMMENT) { - $query->innerJoin('comments _comment ON _comment.postId = posts.id'); - $query->innerJoin('users commentedBy ON commentedBy.id = _comment.userId'); + $query->innerJoin('comments _comment', '_comment.postId = posts.id'); + $query->innerJoin('users commentedBy', 'commentedBy.id = _comment.userId'); } elseif ($requirement->getType() === PostFilter::REQUIREMENT_UPLOADER) { - $query->innerJoin('users uploader ON uploader.id = posts.userId'); + $query->innerJoin('users uploader', 'uploader.id = posts.userId'); } elseif ($requirement->getType() === PostFilter::REQUIREMENT_USER_SCORE)