summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-29 18:24:44 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-29 18:24:44 -0500
commitdd9f1d6e1174db99bb609880f10f757149d465c0 (patch)
tree6a939a45fd20ea118b04304cf9d2e73ccde1985b /app
parent54e31c8128ad856f4d0bf7d82cb05d4c7717b205 (diff)
Add a check in case the request fail
Diffstat (limited to 'app')
-rw-r--r--app/Model/ProjectDailySummary.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/ProjectDailySummary.php b/app/Model/ProjectDailySummary.php
index 1e28832e..0ed3c02b 100644
--- a/app/Model/ProjectDailySummary.php
+++ b/app/Model/ProjectDailySummary.php
@@ -76,7 +76,7 @@ class ProjectDailySummary extends Base
array($from, $to, $project_id)
);
- return $rq->fetchColumn(0);
+ return $rq !== false ? $rq->fetchColumn(0) : 0;
}
/**