1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 13:45:04 -05:00

[fix] method to do an update in database

This commit is contained in:
Nicolas Lœuillet 2014-01-09 21:28:46 +01:00
parent 5cb5e8a9f2
commit 729373eb1a

View File

@ -35,9 +35,9 @@ class EntryRepository
//TODO don't hardcode the user ;)
public function markAsRead($id, $userId = 1) {
$sql = "UPDATE entries SET status = 'read' where id = ? AND user_id = ?";
$entry = $this->db->fetchAll($sql, array($id, $userId));
$count = $this->db->executeUpdate($sql, array($id, $userId));
return true;
return $count;
}
}