diff --git a/lib/Jobs/AutomaticPlaceMapperJob.php b/lib/Jobs/AutomaticPlaceMapperJob.php index 4d842ab53..bc8ea9681 100644 --- a/lib/Jobs/AutomaticPlaceMapperJob.php +++ b/lib/Jobs/AutomaticPlaceMapperJob.php @@ -42,6 +42,10 @@ protected function run($argument) { } $users = $this->userManager->search(''); + if ($users === []) { + return; + } + $lastMappedUser = $this->config->getAppValue(Application::APP_ID, 'lastPlaceMappedUser', ''); if ($lastMappedUser === '') {