summaryrefslogtreecommitdiff
path: root/app/Model/ProjectDailySummary.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/ProjectDailySummary.php')
-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;
}
/**