Skip to content

Commit

Permalink
fix: use mtime 0 instead of NULL - Oracel fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Nov 8, 2023
1 parent f4de277 commit a269c4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ public function update($id, array $data) {
if ($value === '') {
$data[$param] = null;
}
if ($value === null && \in_array($param, ['mtime', 'storage_mtime'], true)) {
$data[$param] = 0;
}
}
}

Expand Down Expand Up @@ -429,7 +432,7 @@ protected function buildParts(array $data) {
$params = [];
$queryParts = [];
foreach ($data as $name => $value) {
if (\array_search($name, $fields) !== false) {
if (\in_array($name, $fields, true)) {
if ($name === 'path') {
$params[] = \md5($value);
$queryParts[] = '`path_hash`';
Expand Down

0 comments on commit a269c4a

Please sign in to comment.