fixed the redirect
to handle everything properly
This commit is contained in:
@@ -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'; ?>
|
Reference in New Issue
Block a user