fixed the redirect

to handle everything properly
This commit is contained in:
2025-07-11 22:55:51 +02:00
parent a881b3933d
commit f780888107
3 changed files with 40 additions and 17 deletions

View File

@@ -8,7 +8,12 @@ include dirname(__DIR__).'/header.phtml';
<h2>Meine Tickets</h2>
</div>
<?php if (!empty($tickets)): ?>
<?php if (isset($error)): ?>
<div class="error-box"><?= htmlspecialchars($error) ?></div>
<div style="text-align:center; margin-top: 1.5em;">
<a href="?controller=Auth&do=showLoginForm">Zum Login</a>
</div>
<?php elseif (!empty($tickets)): ?>
<div class="event-container-inhalt">
<table>
<thead>
@@ -50,4 +55,10 @@ include dirname(__DIR__).'/header.phtml';
</div>
</div>
<?php if (isset($redirect)): ?>
<script>
window.location.href = '<?= $redirect ?>';
</script>
<?php endif; ?>
<?php include dirname(__DIR__).'/footer.phtml'; ?>