瀏覽代碼

Fix Line of Sight field in PDF

Alan Lam 7 年之前
父節點
當前提交
8498164104
共有 1 個文件被更改,包括 6 次插入 和 1 次删除
  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