Skip to content

Commit

Permalink
Division by zero in
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Mat committed Jul 24, 2018
1 parent 19d386d commit 725595d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function drawChart() {
$projetoInicio = $query[count($query)-1]->post_date;
$projetoFinal = $query[0]->post_date;
$projetoDuracao = ceil((strtotime($projetoFinal) - strtotime($projetoInicio))/60/60/24);

if($projetoDuracao==0)$projetoDuracao=1;
$projetoDiasTrabalhados = count($query_by_post_date);
/*foreach(array_keys($query_by_post_title) as $key){
echo $key."<hr />";
Expand Down

0 comments on commit 725595d

Please sign in to comment.