We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8955edf commit 3d643f1Copy full SHA for 3d643f1
app/Http/Controllers/EntityController.php
@@ -175,7 +175,7 @@ public function show(Entity $entity)
175
if (! app()->environment('testing')) {
176
if ($entity->type->value === 'idp' && ! $entity->hfd) {
177
$eduidczOrganization = EduidczOrganization::whereEntityIDofIdP($entity->entityid)->first();
178
- $cesnetOrganization = CesnetOrganization::find($eduidczOrganization?->getFirstAttribute('oPointer'));
+ $cesnetOrganization = $eduidczOrganization ? CesnetOrganization::find($eduidczOrganization?->getFirstAttribute('oPointer')) : null;
179
$cesnetOrganizations = is_null($cesnetOrganization) ? CesnetOrganization::select('o')->get() : null;
180
}
181
0 commit comments