Skip to content

Commit ab5194d

Browse files
authored
Merge pull request #831 from esistgut/patch-1
prevent "Notice: Undefined variable: attributes"
2 parents e539fa2 + 3e6d8be commit ab5194d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/file-upload.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ final class ResolveMediaObjectContentUrlSubscriber implements EventSubscriberInt
208208
return;
209209
}
210210
211-
if (!$attributes = RequestAttributesExtractor::extractAttributes($request) || !\is_a($attributes['resource_class'], MediaObject::class, true)) {
211+
$attributes = RequestAttributesExtractor::extractAttributes($request);
212+
if (!$attributes || !\is_a($attributes['resource_class'], MediaObject::class, true)) {
212213
return;
213214
}
214215

0 commit comments

Comments
 (0)