From 0a061ce95e7c3a5573b401bc238e648e07ea4039 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 22 Mar 2023 10:18:07 -0600 Subject: [PATCH] bugfix for timestamp logic --- system/src/Grav/Common/Assets.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index cd00e1b16..9c270d986 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -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';