LSformElement :: date: fix getPostData() method

This commit is contained in:
Benjamin Renard 2020-12-01 16:42:20 +01:00
parent 3c75ef482e
commit 42dd0aa728

View file

@ -236,7 +236,11 @@ class LSformElement_date extends LSformElement {
}
}
else {
$return[$this -> name] = ensureIsArray($special_values) + ensureIsArray($values);
$return[$this -> name] = array();
if ($special_values !== false)
$return[$this -> name] += ensureIsArray($special_values);
if ($values !== false)
$return[$this -> name] += ensureIsArray($values);
self :: log_trace($this." -> merged values=".varDump($return[$this -> name]));
}
return true;