fehlerbehandlung in die ausgabe der termine eingebaut
This commit is contained in:
parent
deffdc7780
commit
e6e60929d2
1 changed files with 6 additions and 1 deletions
|
@ -158,7 +158,12 @@
|
||||||
<h3>Termine</h3>
|
<h3>Termine</h3>
|
||||||
<?php
|
<?php
|
||||||
require_once '../src/getEvents.php';
|
require_once '../src/getEvents.php';
|
||||||
printEventList();
|
try {
|
||||||
|
printEventList();
|
||||||
|
} catch (Throwable $th) {
|
||||||
|
echo '<p>Sorry ... keine Termine verfügbar</p>';
|
||||||
|
error_log($th->getMessage(), 0);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue