diff --git a/rfc8416.php b/rfc8416.php index 51bd9d2..0100474 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -239,7 +239,7 @@ $roas["metadata"]["human"]["url"] .= $roas["metadata"]["human"]["commit"]; * Numbers must be unquoted integers, and timeformat must * be epoch format. TImezone is set to Etc/UTC. */ -$roas["metadata"]["counts"] = (int)count($roas["roas"]); +$roas["metadata"]["counts"] = (int)count($roas["locallyAddedAssertions"]["prefixAssertions"]); $roas["metadata"]["generated"] = (int)(date_format(new \DateTime("now",new \DateTimeZone("UTC")),"U")); $roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+3day"),"U")); //$roas["metadata"]["signature"] = "";