xddf
All checks were successful
Deploy / deploy (push) Successful in 54s

This commit is contained in:
2026-08-06 01:23:38 +02:00
parent df76199269
commit c9b1839460

View File

@@ -727,10 +727,13 @@ final class AccountPages
INNER JOIN events e ON e.id = ep.event_id INNER JOIN events e ON e.id = ep.event_id
INNER JOIN users u ON u.id = e.created_by INNER JOIN users u ON u.id = e.created_by
LEFT JOIN user_profiles up ON up.user_id = u.id LEFT JOIN user_profiles up ON up.user_id = u.id
WHERE ep.user_id = :id AND e.created_by <> :id AND e.starts_at >= NOW() WHERE ep.user_id = :participantId AND e.created_by <> :ownerId AND e.starts_at >= NOW()
ORDER BY e.starts_at ASC' ORDER BY e.starts_at ASC'
); );
$stmt?->execute(['id' => $userId]); $stmt?->execute([
'participantId' => $userId,
'ownerId' => $userId,
]);
$eventsJoinedUpcoming = $stmt?->fetchAll(\PDO::FETCH_ASSOC) ?: []; $eventsJoinedUpcoming = $stmt?->fetchAll(\PDO::FETCH_ASSOC) ?: [];
$stmt = $pdo?->prepare( $stmt = $pdo?->prepare(
@@ -741,10 +744,13 @@ final class AccountPages
INNER JOIN events e ON e.id = ep.event_id INNER JOIN events e ON e.id = ep.event_id
INNER JOIN users u ON u.id = e.created_by INNER JOIN users u ON u.id = e.created_by
LEFT JOIN user_profiles up ON up.user_id = u.id LEFT JOIN user_profiles up ON up.user_id = u.id
WHERE ep.user_id = :id AND e.created_by <> :id AND e.starts_at < NOW() WHERE ep.user_id = :participantId AND e.created_by <> :ownerId AND e.starts_at < NOW()
ORDER BY e.starts_at DESC' ORDER BY e.starts_at DESC'
); );
$stmt?->execute(['id' => $userId]); $stmt?->execute([
'participantId' => $userId,
'ownerId' => $userId,
]);
$eventsJoinedPast = $stmt?->fetchAll(\PDO::FETCH_ASSOC) ?: []; $eventsJoinedPast = $stmt?->fetchAll(\PDO::FETCH_ASSOC) ?: [];
if (isset($_GET['edit_event'])) { if (isset($_GET['edit_event'])) {