null-waarden afvangen in Beheer en datumhelpers (PHP 8.1 deprecations)

- Beheer: systemnorm null -> '' voor str_replace (zelfde resultaat als PHP 7)
- mysql2date/date2mysql: strtotime() krijgt '' i.p.v. null

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 12:05:57 +02:00
co-authored by Claude Opus 5.5
parent d771c180fa
commit 64c7031b50
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -15,11 +15,11 @@
}
function date2mysql($date){
return date('Y-m-d', strtotime($date));
return date('Y-m-d', strtotime($date ?? ''));
}
function mysql2date($date){
return date('d-m-Y', strtotime($date));
return date('d-m-Y', strtotime($date ?? ''));
}
function mysql2bedrag($bedrag){
$bedrag2=number_format((float)$bedrag,2,",",".");