1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00
This commit is contained in:
Ryan Cramer
2020-09-11 10:46:21 -04:00
parent aaa7ff2994
commit e407fb9f04

View File

@@ -165,7 +165,7 @@ class InputfieldDatetimeSelect extends InputfieldDatetimeType {
'day' => (int) $input[$name . '__d'],
);
if(!strlen(trim("$a[month]$a[day]$a[year]"))) {
if(!strlen(trim("$a[month]$a[day]$a[year]", "0"))) {
// empty value
$this->setAttribute('value', '');
return '';