mirror of
https://github.com/processwire/processwire.git
synced 2025-08-22 14:23:05 +02:00
Fix issue processwire/processwire-issues#1203
This commit is contained in:
@@ -1371,6 +1371,8 @@ class FieldtypeFile extends FieldtypeMulti implements ConfigurableModule {
|
||||
throw new WireException("Unknown column '$col' for field $field->name");
|
||||
} else if($col === 'filedata' || strpos($col, 'description') === 0) {
|
||||
throw new WireException("Column '$col' cannot be saved with $this::saveFileCols()");
|
||||
} else if($col === 'created' || $col === 'modified') {
|
||||
if(ctype_digit("$value")) $value = date('Y-m-d H:i:s', (int) $value);
|
||||
}
|
||||
$sets[] = "$col=:$col";
|
||||
$binds[":$col"] = $value;
|
||||
|
Reference in New Issue
Block a user