diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-11-14 09:28:47 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-11-14 09:28:58 -0100 |
commit | 3af12b2a50222c0e83273c939e5abdd747b82d9e (patch) | |
tree | c6651606efeb331a18c27ae28d94daf2a1340291 /lib/public/FilesMetadata | |
parent | f313b12d54a831f3788bb44d7f51bb8f1ac54583 (diff) | |
download | nextcloud-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.php | 4 |
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. |