Bläddra i källkod

Fix Line of Sight field in PDF

Alan Lam 7 år sedan
förälder
incheckning
8498164104
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      template_processing/age_verification_mitchells_butlers/test_pdf.php

+ 6 - 1
template_processing/age_verification_mitchells_butlers/test_pdf.php

@@ -193,9 +193,14 @@ $pass_image = $test->pass ? "pass.png" : "fail.png";
 			<div class="value"><?=TestPDF::getValueHtml($values["play_machine_position"] ?? "")?></div>
 		</div>
 
+		<?php
+		$value = $values["play_machine_line_of_sight"] ?? "";
+		if(strlen($value)) $value = $value ? "Yes" : "No";
+		?>
+
 		<div class="bl">
 			<div class="field">Line of Sight of Bar:</div>
-			<div class="value"><?=TestPDF::getValueHtml($values["play_machine_line_of_sight"] ?? "")?></div>
+			<div class="value"><?=TestPDF::getValueHtml($value)?></div>
 		</div>
 
 		<?php