Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "VALUE" #2000

Closed
1 task done
fglueck opened this issue Mar 11, 2024 · 1 comment
Closed
1 task done

Undefined array key "VALUE" #2000

fglueck opened this issue Mar 11, 2024 · 1 comment

Comments

@fglueck
Copy link
Contributor

fglueck commented Mar 11, 2024

Guidelines

Description of the bug

If an SELECT-OPTION have no value attribute, there will throw:
Undefined array key "VALUE"

/srv/www/html/cockpit/inc/vendor/mpdf/mpdf/src/Tag/Option.php
Line: 30

Sample:

mPDF version

current

PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)

PHP 8.0 + 8.3

Reproducible PHP+CSS+HTML snippet suffering by the error

  <select id="contact" style="width: 130px" data-mail_body="..."  data-subject=".." onchange="/* */">
  <option selected="true" disabled="disabled">@ Mailanfrage zu:</option>
  <option value="..."         data-subject="Kaufvertragsdaten"            data-body_add="">Kaufvertragsdaten</option>
  </select>
@finwe
Copy link
Member

finwe commented Mar 11, 2024

This already has a fix here #1934 which I have forgotten about. Will revisit.

@finwe finwe closed this as completed Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants