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 Sep 15, 2021
1 parent 5fb41b0 commit d293089
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 @@ -341,6 +341,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 @@ -411,7 +414,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 d293089

Please sign in to comment.