diff options
| author | 2018-10-14 13:48:59 +0200 | |
|---|---|---|
| committer | 2018-10-14 13:48:59 +0200 | |
| commit | c8b54ae807f583723748b5a8cebf9925fb288f9d (patch) | |
| tree | 64e29b39d69c704f2b389369072304ba9544ea70 /app/Models/EntryDAO.php | |
| parent | 8221c807a10942c77309547e9c7dc709146f7117 (diff) | |
Fix MySQL create table feeds (#2047)
https://github.com/FreshRSS/FreshRSS/issues/2042
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index a86de67d6..a01c2227b 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -992,7 +992,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo implements FreshRSS_Searchable { $stm = $this->bd->prepare($sql); $stm->execute(); $res = $stm->fetchAll(PDO::FETCH_COLUMN, 0); - return $res[0]; + return isset($res[0]) ? $res[0] : 0; } public function countNotRead($minPriority = null) { $sql = 'SELECT COUNT(e.id) AS count FROM `' . $this->prefix . 'entry` e'; |
