diff options
Diffstat (limited to 'app/Models/StatsDAOSQLite.php')
| -rw-r--r-- | app/Models/StatsDAOSQLite.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/StatsDAOSQLite.php b/app/Models/StatsDAOSQLite.php index 632fa17e2..9f292aae6 100644 --- a/app/Models/StatsDAOSQLite.php +++ b/app/Models/StatsDAOSQLite.php @@ -25,6 +25,9 @@ ORDER BY period ASC SQL; $stm = $this->pdo->query($sql); + if ($stm === false) { + return []; + } $res = $stm->fetchAll(PDO::FETCH_NAMED); switch ($period) { |
