Skip to content

Firefly III: a personal finances manager

Fix nullsafe thing

Sander Dorigo0ada96ac5d9a
diff --git a/app/Console/Commands/Tools/Cron.php b/app/Console/Commands/Tools/Cron.php
index d3c89667f9..8429a3d369 100644
--- a/app/Console/Commands/Tools/Cron.php
+++ b/app/Console/Commands/Tools/Cron.php
@@ -63,7 +63,7 @@ class Cron extends Command
{
/** @var UserRepositoryInterface $repository */
$repository = app(UserRepositoryInterface::class);
- $admin = $repository->getUsersByRole('owner')?->first();
+ $admin = $repository->getUsersByRole('owner')->first();
if(null === $admin) {
$this->friendlyError('There is no user in the system with the "owner"-role, cannot continue.');
return 1;