diff --git a/src/structure/components/com_sportsmanager/admin.php b/src/structure/components/com_sportsmanager/admin.php index 265fa29..964e4aa 100644 --- a/src/structure/components/com_sportsmanager/admin.php +++ b/src/structure/components/com_sportsmanager/admin.php @@ -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);