Commit 6139150d authored by S_Bhandari's avatar S_Bhandari Committed by bbrala

Issue #3112495 by S_Bhandari, dmitry.korhov, bbrala: Notice: Undefined offset:...

Issue #3112495 by S_Bhandari, dmitry.korhov, bbrala: Notice: Undefined offset: 0 jsonapi_defaults/src/Controller/EntityResource.php on line 143
parent 854ad1e6
......@@ -144,7 +144,7 @@ class EntityResource extends JsonApiEntityResourse {
);
throw new \LengthException($message);
}
return $relatable_resource_types[0];
return isset($relatable_resource_types[0]) ? $relatable_resource_types[0] : NULL;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment