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";
$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;

View File

@@ -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

View File

@@ -1,11 +1,18 @@
// 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