From 4e95dd45eb8c5ba3b1f463e448e19c8f9540a42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 9 Jan 2014 15:51:13 +0100 Subject: [PATCH] [fix] return value when we mark an entry as read --- src/Poche/Repository/EntryRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Poche/Repository/EntryRepository.php b/src/Poche/Repository/EntryRepository.php index 4c437a5..f266610 100644 --- a/src/Poche/Repository/EntryRepository.php +++ b/src/Poche/Repository/EntryRepository.php @@ -37,7 +37,7 @@ class EntryRepository $sql = "UPDATE entries SET status = 'read' where id = ? AND user_id = ?"; $entry = $this->db->fetchAll($sql, array($id, $userId)); - return $entry ? true : false; + return true; } }