diff options
| author | 2016-08-28 13:36:11 +0200 | |
|---|---|---|
| committer | 2016-08-28 13:36:11 +0200 | |
| commit | 961407b4e0546dd38a696a650898fcefbe2d6c8c (patch) | |
| tree | 1f5b52e892d3dbd0a8dfd13f332ab98a11a41b82 /app/Models/StatsDAO.php | |
| parent | f9359cd406bafdbb1ffaa8bad8a5810a02efc820 (diff) | |
Variable initialization
PHP warning when not feed is iddle
https://github.com/FreshRSS/FreshRSS/issues/1227#issuecomment-242702464
Diffstat (limited to 'app/Models/StatsDAO.php')
| -rw-r--r-- | app/Models/StatsDAO.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Models/StatsDAO.php b/app/Models/StatsDAO.php index 5ca333396..4f83ff577 100644 --- a/app/Models/StatsDAO.php +++ b/app/Models/StatsDAO.php @@ -168,6 +168,7 @@ SQL; $stm->execute(); $res = $stm->fetchAll(PDO::FETCH_NAMED); + $repartition = array(); foreach ($res as $value) { $repartition[(int) $value['period']] = (int) $value['count']; } |
