Skip to content

Commit 3e6d8be

Browse files
authored
prevent "Notice: Undefined variable: attributes"
1 parent e539fa2 commit 3e6d8be

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)