From e15dc6382bd9aba413c4c4f6e36535448f5f8934 Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Wed, 14 Mar 2018 15:44:34 -0700 Subject: [PATCH] php fixes for #1464 --- library/report.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/report.inc b/library/report.inc index 60b20bdf6..e87cab691 100644 --- a/library/report.inc +++ b/library/report.inc @@ -385,7 +385,7 @@ function getRecHistoryData($pid) while ($result = sqlFetchArray($res)) { foreach ($result as $key => $val) { if ($key == "pid" || $key == "date" || $key == "id") { - next; + continue; } else { $curdate = $result{"date"}; if (($retar{$key}[$arcount{$key}]{"value"} != $val)) { @@ -411,7 +411,7 @@ function getRecEmployerData($pid) while ($result = sqlFetchArray($res)) { foreach ($result as $key => $val) { if ($key == "pid" || $key == "date" || $key == "id") { - next; + continue; } else { $curdate = $result{"date"}; if (($retar{$key}[$arcount{$key}]{"value"} != $val)) { @@ -437,7 +437,7 @@ function getRecPatientData($pid) while ($result = sqlFetchArray($res)) { foreach ($result as $key => $val) { if ($key == "pid" || $key == "date" || $key == "id") { - next; + continue; } else { $curdate = $result{"date"}; if (($retar{$key}[$arcount{$key}]{"value"} != $val)) { @@ -463,7 +463,7 @@ function getRecInsuranceData($pid, $ins_type) while ($result = sqlFetchArray($res)) { foreach ($result as $key => $val) { if ($key == "pid" || $key == "date" || $key == "id") { - next; + continue; } else { $curdate = $result{"date"}; if (($retar{$key}[$arcount{$key}]{"value"} != $val)) { @@ -530,7 +530,7 @@ function printRecDataOne($data_array, $recres, $N) print "\n"; $count = 0; foreach ($data_array as $akey => $aval) { - if (sizeof($recres{$akey})>0 && ($recres{$akey}[1]{"value"}!="0000-00-00 00:00:00")) { + if (!empty($recres{$akey}) && sizeof($recres{$akey})>0 && ($recres{$akey}[1]{"value"}!="0000-00-00 00:00:00")) { if ($count == $N) { print "\n"; $count = 0; -- 2.11.4.GIT