Version updated

This commit is contained in:
rxf
2025-12-20 16:59:15 +01:00
parent 4297a98511
commit 66953de7f4
3 changed files with 33 additions and 11 deletions

View File

@@ -824,7 +824,10 @@ class RepoStatistikJahre
{ {
$sql = "SELECT YEAR(datum) as jahr FROM " . self::TBL . " GROUP BY YEAR(datum) ORDER BY YEAR(datum) DESC"; $sql = "SELECT YEAR(datum) as jahr FROM " . self::TBL . " GROUP BY YEAR(datum) ORDER BY YEAR(datum) DESC";
$rows = DB::all($sql); $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'; require_once __DIR__ . '/phpmailer/dosendmail.php';
// sanitize lists // sanitize lists
$toList = array_values(array_filter($toList, fn($v) => is_string($v) && trim($v) !== '')); $toList = array_values(array_filter($toList, function ($v) {
$ccList = array_values(array_filter($ccList, fn($v) => is_string($v) && trim($v) !== '')); return is_string($v) && trim($v) !== '';
$bccList = array_values(array_filter($bccList, fn($v) => 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)) { if (empty($toList)) {
return false; return false;

View File

@@ -1,5 +1,6 @@
# Production Environment Variables # 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 # HTTP Basic Authentication
VITE_API_USERNAME=beogruppe VITE_API_USERNAME=beogruppe

View File

@@ -1,17 +1,24 @@
// VersiosNummern und -Geschichte // VersiosNummern und -Geschichte
var VERSION="1.92"; var VERSION="1.94";
var VDATE="2024-09-20"; var VDATE="2025-12-14";
/* History /* 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 1.92 2024-09-20 rxf
- Probleme mit 'Zusgae sende' behoben - Probleme mit 'Zusgae sende' behoben
- auch bei mehreren BEOs geht nun die Mail richtig - auch bei mehreren BEOs geht nun die Mail richtig
1.91 2024-09-14 rxf 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 1.90 2024-09-02 rxf
- Automatisch Mails senden an Liste bei 'offen' und am BEO und den Anmeldenden bei 'Zusage' - Automatisch Mails senden an Liste bei 'offen' und am BEO und den Anmeldenden bei 'Zusage'