DB4js_all.php an POHP7.3 angepasst
This commit is contained in:
@@ -824,7 +824,7 @@ 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(function($r) { return (int)$r['jahr']; }, $rows);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -947,9 +947,9 @@ 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) { return is_string($v) && trim($v) !== ''; }));
|
||||||
$ccList = array_values(array_filter($ccList, 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, fn($v) => is_string($v) && trim($v) !== ''));
|
$bccList = array_values(array_filter($bccList, function($v) { return is_string($v) && trim($v) !== ''; }));
|
||||||
|
|
||||||
if (empty($toList)) {
|
if (empty($toList)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -284,6 +284,11 @@ function addEditbox(detail) {
|
|||||||
|
|
||||||
//bei der Eingabe der BEOs eine Autovervollständigung durchführen
|
//bei der Eingabe der BEOs eine Autovervollständigung durchführen
|
||||||
function buildBeosComplete() {
|
function buildBeosComplete() {
|
||||||
|
let names=[]
|
||||||
|
for (x in beos) {
|
||||||
|
names.push(x.name)
|
||||||
|
}
|
||||||
|
|
||||||
function split( val ) {
|
function split( val ) {
|
||||||
return val.split( /,\s*/ );
|
return val.split( /,\s*/ );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user