From dd9f1d6e1174db99bb609880f10f757149d465c0 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 29 Nov 2014 18:24:44 -0500 Subject: Add a check in case the request fail --- app/Model/ProjectDailySummary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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; } /** -- cgit v1.2.3