Skip to content

Commit

Permalink
Fix division by zero (estatisticas)
Browse files Browse the repository at this point in the history
  • Loading branch information
guaycuru committed Jul 10, 2017
1 parent f498838 commit 777e717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/estatisticas.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@
<tbody>
<?php
foreach($catalogos as $catalogo => $quantos) {
if(!isset($vagas[$catalogo]))
continue;
$pc_gde = number_format(($quantos / $vagas[$catalogo])*100, 2);
if($pc_gde > 100)
$pc_gde = '100.00+';
Expand Down

0 comments on commit 777e717

Please sign in to comment.