$collectionsConfig fix

This commit is contained in:
shimon 2023-10-27 19:07:27 +03:00
parent 917a4e9ab1
commit 75484fa018

View file

@ -81,7 +81,7 @@ class DeleteOrphanedProjects extends Action
$dbForProject->setNamespace('_' . $project->getInternalId());
$collectionsCreated = $dbForProject->count(Database::METADATA);
$message = ' (' . $collectionsCreated . ') collections where found on project (' . $project->getId() . '))';
if ($collectionsCreated < ($collectionsConfig + 2)) {
if ($collectionsCreated < (count($collectionsConfig) + 2)) {
Console::error($message);
$orphans++;
} else {