Skip to content

Commit d648548

Browse files
authored
Fix incorrect closure declaration for manual geo-photos rescan-command. (#1419)
Signed-off-by: umgfoin <[email protected]>
1 parent eba4562 commit d648548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Command/RescanPhotos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8686
echo "Extracting coordinates from photo is performed in a BackgroundJob \n";
8787
}
8888
if ($userId === null) {
89-
$this->userManager->callForSeenUsers(function (IUser $user, string $pathToScan) use ($inBackground) {
89+
$this->userManager->callForSeenUsers(function (IUser $user, ?string $pathToScan = null) use ($inBackground) {
9090
$this->rescanUserPhotos($user->getUID(), $inBackground, $pathToScan);
9191
});
9292
} else {

0 commit comments

Comments
 (0)