diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php index 3b647a5ac63dd..dafdc6e12cde6 100644 --- a/lib/private/Files/Cache/Propagator.php +++ b/lib/private/Files/Cache/Propagator.php @@ -62,6 +62,10 @@ public function propagateChange(string $internalPath, int $time, int $sizeDiffer } } + if ($parents === []) { + return; + } + if ($this->inBatch) { foreach ($parents as $parent) { $this->addToBatch($parent, $time, $sizeDifference);