removed php-warnings on LoTW-Import...

If selected date is today or date in future, php notices appear and these iritates users. This patch removes the warnings on unset variables and puts out a clear message to check selected date.
This commit is contained in:
Kim Huebel
2020-09-02 21:04:03 +02:00
parent de19042277
commit 20ddd8114b

View File

@@ -1,7 +1,13 @@
<div class="container">
<h2><?php echo $page_title; ?></h2>
<?php echo $lotw_table_headers; ?>
<?php echo $lotw_table; ?>
<?php
if (isset ($lotw_table_headers)) {
echo $lotw_table_headers;
} else {
echo 'No data imported. please check selected date. must be in the past!';
}
?>
<?php if (isset ($lotw_table)) {echo $lotw_table;} ?>
</div>