Skip to content
Permalink
Browse files

Fix PHP notice for undefined variable

  • Loading branch information...
RobbieF committed May 4, 2019
1 parent be5f20c commit e452724927c002f297ae68fbb487132b1ff80947
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark-parse.sh
@@ -29,7 +29,7 @@
$events = floatval($tmp[1]);
}
}
if ( ($events > 0) && ($time > 0) ) {
if ( isset($events) && isset($time) && ($events > 0) && ($time > 0) ) {
$result = ($events / $time);
echo $result;
} else {

0 comments on commit e452724

Please sign in to comment.
You can’t perform that action at this time.