diff options
| author | 2019-10-06 22:17:28 +0200 | |
|---|---|---|
| committer | 2019-10-06 22:17:28 +0200 | |
| commit | 3b65f2e5867b3da176be9e976267633eeccf6184 (patch) | |
| tree | 319ee2a9b8e3b57750fc8e8a4bab9250447aa745 /app/Models/EntryDAO.php | |
| parent | be4c942cb3bd2b41dc2e01eb437dfd4f2f73ab4a (diff) | |
Fix PostgreSQL and SQLite DB size estimation (#2562)
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index cf896eafd..5ff3a5b70 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -951,6 +951,9 @@ SQL; $sql .= ' WHERE f.priority > ' . intval($minPriority); } $stm = $this->pdo->query($sql); + if ($stm == false) { + return false; + } $res = $stm->fetchAll(PDO::FETCH_COLUMN, 0); return isset($res[0]) ? $res[0] : 0; } |
