bugfix for timestamp logic

This commit is contained in:
Andy Miller
2023-03-22 10:18:07 -06:00
parent d82ee029e1
commit 0a061ce95e

View File

@@ -269,7 +269,12 @@ class Assets extends PropertyObject
// Add timestamp
$timestamp_override = $options['timestamp'] ?? true;
$options['timestamp'] = $this->timestamp && filter_var($timestamp_override, FILTER_VALIDATE_BOOLEAN);
if (filter_var($timestamp_override, FILTER_VALIDATE_BOOLEAN)) {
$options['timestamp'] = $this->timestamp;
} else {
$options['timestamp'] = null;
}
// Set order
$group = $options['group'] ?? 'head';