Skip to content

Commit

Permalink
fix: parameter in foreach when array is null
Browse files Browse the repository at this point in the history
  • Loading branch information
elfiservice committed Mar 15, 2018
1 parent 3a39083 commit ba3e466
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modulos/tecnico/orcamento/manterOrcamentos.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
<tbody>
<?php
$orcamentosArray = $orcCrtl->buscarOrcamentos("*", "WHERE ano_orc = '$ano_orc_selec' ORDER BY id DESC");
foreach ($orcamentosArray as $orc => $row) {
if($orcamentosArray) {
foreach ($orcamentosArray as $orc => $row) {
$id_orc = $row['id'];
$id_cliente = $row['id_cliente'];
//Buscar ID do CLIENTE
Expand Down Expand Up @@ -200,6 +201,7 @@

<?php
}
}
?>

</tbody>
Expand Down

0 comments on commit ba3e466

Please sign in to comment.