Merge branch 'ent-11358-error-500-en-bulk-operations-agentes' into 'develop'

Ent 11358 error 500 en bulk operations agentes

See merge request artica/pandorafms!5982
This commit is contained in:
Rafael Ameijeiras 2023-05-30 09:39:41 +00:00
commit e4c605a1e5
1 changed files with 24 additions and 22 deletions

View File

@ -1190,6 +1190,7 @@ function mysql_db_format_array_to_update_sql($values)
$fields = [];
foreach ($values as $field => $value) {
if (is_object($value) === false) {
if (is_numeric($field)) {
array_push($fields, $value);
continue;
@ -1215,6 +1216,7 @@ function mysql_db_format_array_to_update_sql($values)
array_push($fields, $sql);
}
}
return implode(', ', $fields);
}