fix type of fileid iterators for background scanner

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-06-30 15:50:01 +02:00
Родитель 015192b827
Коммит 48ce08da08
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -14,7 +14,7 @@
This application inspects files that are uploaded to Nextcloud for viruses before they are written to the Nextcloud storage. If a file is identified as a virus, it is either logged or not uploaded to the server. The application relies on the underlying ClamAV virus scanning engine, which the admin points Nextcloud to when configuring the application. Alternatively, a Kaspersky Scan Engine can be configured, which has to run on a separate server.
For this app to be effective, the ClamAV virus definitions should be kept up to date. Also note that enabling this app will impact system performance as additional processing is required for every upload. More information is available in the Antivirus documentation.
]]></description>
<version>5.2.0</version>
<version>5.2.1</version>
<licence>agpl</licence>
<author>Manuel Delgado</author>

Просмотреть файл

@ -213,7 +213,7 @@ class BackgroundScanner extends TimedJob {
$result = $query->executeQuery();
while (($fileId = $result->fetchOne()) !== false) {
yield $fileId;
yield (int)$fileId;
}
}
@ -260,7 +260,7 @@ class BackgroundScanner extends TimedJob {
$result = $query->executeQuery();
while (($fileId = $result->fetchOne()) !== false) {
yield $fileId;
yield (int)$fileId;
}
}