Skip to content

Commit

Permalink
Substituindo strpos por strstr devido a falha no php do HCPA-RS
Browse files Browse the repository at this point in the history
  • Loading branch information
marlinhares committed Aug 14, 2020
1 parent 6c9f6b2 commit 1d38766
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rn/MdEstatisticasColetarRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public function coletarIndicadores() {
private static function bolArrFindItem($arrNeedle, $strHaystack){
$r=false;
foreach ($arrNeedle as $v) {
$r=strpos($strHaystack, $v);
if($r === 0 || $r) return $r;
if(strstr($strHaystack, $v)) return true;
}
return $r;
}
Expand Down

0 comments on commit 1d38766

Please sign in to comment.