* Judgment of multi-select fields.

This commit is contained in:
kyle
2023-09-15 07:38:02 +00:00
parent 8c21e109d4
commit ebd31dd2ed
+6 -1
View File
@@ -3725,7 +3725,12 @@ EOF;
foreach($postData as $key => $value)
{
if(!is_array($value) or strpos($this->config->$objectType->excludeCheckFileds, ",$key,") !== false) continue;
if(isset($value[$index]) and !empty($value[$index]) and $value[$index] != 'ditto') return true;
if(isset($value[$index]) and !empty($value[$index]) and $value[$index] != 'ditto')
{
/* Judgment of multi-select fields. */
if(is_array($value[$index]) and join(',', $value[$index]) == '') continue;
return true;
}
}
return false;