Skip to content

Commit

Permalink
catch exception when PDO call fails, fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
objp4th committed Apr 24, 2019
1 parent 6c878c7 commit 488530e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fever_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,11 @@ function getItems()
(SELECT hide_images FROM ttrss_feeds WHERE id = feed_id) AS hide_images
FROM ttrss_entries, ttrss_user_entries
WHERE " . $where);
$sth->execute($where_items);
try {
$sth->execute($where_items);
} catch (PDOException $e) {
/* nop */
}

while ($line = $sth->fetch())
{
Expand Down

0 comments on commit 488530e

Please sign in to comment.