fix: 500 error in prod
│ {"message":"Uncaught PHP Exception TypeError: \"App\\Repository\\ConfigurationRepository::getServicesParameter(): Return value must be of type bool, null returned\" at ConfigurationRepository.php line 71","context":{"exception":{"class │
│ ":"TypeError","message":"App\\Repository\\ConfigurationRepository::getServicesParameter(): Return value must be of type bool, null returned","code":0,"file":"/srv/app/src/Repository/ConfigurationRepository.php:71"}},"level":500,"level_ │
│ name":"CRITICAL","channel":"request","datetime":"2024-10-28T10:38:49.791926+01:00","extra":{}}
This commit is contained in:
parent
35f22d9598
commit
7e50abfdb6
1 changed files with 1 additions and 1 deletions
|
|
@ -68,6 +68,6 @@ final class ConfigurationRepository extends ServiceEntityRepository
|
|||
->setMaxResults(1)
|
||||
->getQuery()->getOneOrNullResult();
|
||||
|
||||
return $config['configuration']['global']['globalServicesEnabled'];
|
||||
return $config['configuration']['global']['globalServicesEnabled'] ?? false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue