Skip to content

Commit

Permalink
Update webapp/src/Form/Type/SubmitProblemPasteType.php
Browse files Browse the repository at this point in the history
Co-authored-by: MCJ Vasseur <[email protected]>
  • Loading branch information
as6325400 and vmcj authored Nov 16, 2024
1 parent dbe2363 commit 723f8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Form/Type/SubmitProblemPasteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
$form = $context->getRoot();
/** @var Language $language */
$language = $form->get('language')->getData();
$langId = strtolower($language->getExtensions()[0]);
$langId = strtolower($language->getExtensions()[0]);
if ($language->getRequireEntryPoint() && empty($value)) {
$message = sprintf('%s required, but not specified',
$language->getEntryPointDescription() ?: 'Entry point');
Expand Down

0 comments on commit 723f8d5

Please sign in to comment.