aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/FilesMetadata
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-11-14 09:28:47 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-11-14 09:28:58 -0100
commit3af12b2a50222c0e83273c939e5abdd747b82d9e (patch)
treec6651606efeb331a18c27ae28d94daf2a1340291 /lib/public/FilesMetadata
parentf313b12d54a831f3788bb44d7f51bb8f1ac54583 (diff)
downloadnextcloud-server-3af12b2a50222c0e83273c939e5abdd747b82d9e.tar.gz
nextcloud-server-3af12b2a50222c0e83273c939e5abdd747b82d9e.zip
ignore metadata if table is empty
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/public/FilesMetadata')
-rw-r--r--lib/public/FilesMetadata/IFilesMetadataManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/FilesMetadata/IFilesMetadataManager.php b/lib/public/FilesMetadata/IFilesMetadataManager.php
index ebebf3e806b..78ea020e967 100644
--- a/lib/public/FilesMetadata/IFilesMetadataManager.php
+++ b/lib/public/FilesMetadata/IFilesMetadataManager.php
@@ -105,7 +105,7 @@ interface IFilesMetadataManager {
* @param string $fileTableAlias alias of the table that contains data about files
* @param string $fileIdField alias of the field that contains file ids
*
- * @return IMetadataQuery
+ * @return IMetadataQuery|null NULL if table are not set yet or never used
* @see IMetadataQuery
* @since 28.0.0
*/
@@ -113,7 +113,7 @@ interface IFilesMetadataManager {
IQueryBuilder $qb,
string $fileTableAlias,
string $fileIdField
- ): IMetadataQuery;
+ ): ?IMetadataQuery;
/**
* returns all type of metadata currently available.