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
1 changed files with 1 additions and 1 deletions

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;
}
/**