Add a check in case the request fail

This commit is contained in:
Frédéric Guillot
2014-11-29 18:24:44 -05:00
parent 54e31c8128
commit dd9f1d6e11

View File

@@ -76,7 +76,7 @@ class ProjectDailySummary extends Base
array($from, $to, $project_id)
);
return $rq->fetchColumn(0);
return $rq !== false ? $rq->fetchColumn(0) : 0;
}
/**