$requestProperties = $propFind->getRequestedProperties();
- if ($this->config->getSystemValueBool('enable_file_metadata', true) && $propFind->getDepth() === 1) {
- $requestedMetaData = [];
- foreach ($requestProperties as $requestProperty) {
- if (isset(self::ALL_METADATA_PROPS[$requestProperty])) {
- $requestedMetaData[] = self::ALL_METADATA_PROPS[$requestProperty];
- }
+ $requestedMetaData = [];
+ foreach ($requestProperties as $requestProperty) {
+ if (isset(self::ALL_METADATA_PROPS[$requestProperty])) {
+ $requestedMetaData[] = self::ALL_METADATA_PROPS[$requestProperty];
}
+ }
+ if (
+ $this->config->getSystemValueBool('enable_file_metadata', true) &&
+ $propFind->getDepth() === 1 &&
+ $requestedMetaData
+ ) {
$children = $node->getChildren();
// Preloading of the metadata