Update src/structure/components/com_sportsmanager/admin.php

Co-authored-by: MarvinF <B3r@users.noreply.github.com>
This commit is contained in:
jmeyer26
2025-12-23 13:00:55 +01:00
committed by GitHub
parent 2fe9acb01c
commit ddca0066bf
@@ -6238,7 +6238,7 @@ function sendJoomlaMail(): void
$subject = $db->escape(trim($jInput->get('betreff', '', 'RAW')));
$body = nl2br(trim($jInput->get('nachricht', '', 'RAW')));
$user_id = isExternalDatabase() ? 0 : (isJson() ? getUserID() : Factory::getContainer()->get(SiteApplication::class)->getIdentity()->id);
$user_id = isExternalDatabase() ? 0 : (isJson() ? getUserID() : $app->getIdentity()->id);
$query = "SELECT name, email FROM #__users WHERE id = '$user_id';";
$absender = loadObjectList($db, $query);