diff --git a/sternwarte/DB4js_all.php b/sternwarte/DB4js_all.php index e239e08..51b61a2 100644 --- a/sternwarte/DB4js_all.php +++ b/sternwarte/DB4js_all.php @@ -824,7 +824,10 @@ class RepoStatistikJahre { $sql = "SELECT YEAR(datum) as jahr FROM " . self::TBL . " GROUP BY YEAR(datum) ORDER BY YEAR(datum) DESC"; $rows = DB::all($sql); - return array_map(fn($r) => (int)$r['jahr'], $rows); +// return array_map(fn($r) => (int)$r['jahr'], $rows); + return array_map(function ($r) { + return (int)$r['jahr']; + }, $rows); } } @@ -947,9 +950,20 @@ class Mailer require_once __DIR__ . '/phpmailer/dosendmail.php'; // sanitize lists - $toList = array_values(array_filter($toList, fn($v) => is_string($v) && trim($v) !== '')); - $ccList = array_values(array_filter($ccList, fn($v) => is_string($v) && trim($v) !== '')); - $bccList = array_values(array_filter($bccList, fn($v) => is_string($v) && trim($v) !== '')); + $toList = array_values(array_filter($toList, function ($v) { + return is_string($v) && trim($v) !== ''; + })); + + $ccList = array_values(array_filter($ccList, function ($v) { + return is_string($v) && trim($v) !== ''; + })); + + $bccList = array_values(array_filter($bccList, function ($v) { + return is_string($v) && trim($v) !== ''; + })); + // $toList = array_values(array_filter($toList, fn($v) => is_string($v) && trim($v) !== '')); + // $ccList = array_values(array_filter($ccList, fn($v) => is_string($v) && trim($v) !== '')); + // $bccList = array_values(array_filter($bccList, fn($v) => is_string($v) && trim($v) !== '')); if (empty($toList)) { return false; diff --git a/sternwarte/beoanswer/.env.production b/sternwarte/beoanswer/.env.production index 4be27ce..c79770e 100644 --- a/sternwarte/beoanswer/.env.production +++ b/sternwarte/beoanswer/.env.production @@ -1,5 +1,6 @@ # Production Environment Variables -VITE_API_URL=/intern/sofue/php/sofueDB.php +# VITE_API_URL=/intern/sofue/php/sofueDB.php +VITE_API_URL=/DB4js_all.php # Lokales Development Backend (über Proxy) # HTTP Basic Authentication VITE_API_USERNAME=beogruppe diff --git a/sternwarte/intern/sofue/js/version.js b/sternwarte/intern/sofue/js/version.js index 4da50e0..29cef56 100755 --- a/sternwarte/intern/sofue/js/version.js +++ b/sternwarte/intern/sofue/js/version.js @@ -1,17 +1,24 @@ // VersiosNummern und -Geschichte -var VERSION="1.92"; -var VDATE="2024-09-20"; +var VERSION="1.94"; +var VDATE="2025-12-14"; /* History -Rev. Datum Entwickler +R1ev. Datum Entwickler + 1.94 2025-12-14 rxf + - DB4js_all.php nun verwenden + - prüfen auf 'termin === null' ich check1900() + + 1.93 2025-05-12 rxf + - Kalender-Eintrag nun auch mit Beo + 1.92 2024-09-20 rxf - - Probleme mit 'Zusgae sende' behoben - - auch bei mehreren BEOs geht nun die Mail richtig + - Probleme mit 'Zusgae sende' behoben + - auch bei mehreren BEOs geht nun die Mail richtig 1.91 2024-09-14 rxf - - and den BEOS keine Kontaktdaten mehr senden (die stehen in der Übersichtsseite) + - and den BEOS keine Kontaktdaten mehr senden (die stehen in der Übersichtsseite) 1.90 2024-09-02 rxf - Automatisch Mails senden an Liste bei 'offen' und am BEO und den Anmeldenden bei 'Zusage'