summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/itemmapper.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php
index ad5424eac..eee3adb6a 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -222,12 +222,8 @@ class ItemMapper extends Mapper implements IMapper {
$sql = $this->makeSelectQuery(
'AND `items`.`guid_hash` = ? ' .
'AND `feeds`.`id` = ? ');
- $row = $this->findOneQuery($sql, array($userId, $guidHash, $feedId));
- $item = new Item();
- $item->fromRow($row);
-
- return $item;
+ return $this->findEntity($sql, array($userId, $guidHash, $feedId));
}