We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$this->pmPrefs['attach_class'] has value 254
$this->pmPrefs['attach_class']
A normal user doesn't see this field thanks this check: if (isset($this->pmPrefs['attach_class']) && check_class($this->pmPrefs['attach_class']))
if (isset($this->pmPrefs['attach_class']) && check_class($this->pmPrefs['attach_class']))
BUT in PHP 8.2. it fails on foreach (array_keys($_FILES['file_userfile']['size']) as $fid) because value is NULL and not array
foreach (array_keys($_FILES['file_userfile']['size']) as $fid)
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in ***plugins\pm\pm.php on line 618
Thanks
The text was updated successfully, but these errors were encountered:
Fix #5025: Type error when sending a PM without the attachment field
5196c4f
Merge pull request #5027 from Deltik/fix/5025
e615bcf
Fixes #5025: Type error when sending a PM without the attachment field
Successfully merging a pull request may close this issue.
Bug Description
$this->pmPrefs['attach_class']
has value 254A normal user doesn't see this field thanks this check:
if (isset($this->pmPrefs['attach_class']) && check_class($this->pmPrefs['attach_class']))
BUT in PHP 8.2. it fails on
foreach (array_keys($_FILES['file_userfile']['size']) as $fid)
because value is NULL and not array
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in ***plugins\pm\pm.php on line 618
Thanks
The text was updated successfully, but these errors were encountered: