-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Whilst upgrading, errors in upgrade scripts prevent properly execution #4284
Comments
I would concur with this finding. The function |
Submitted a pull request. Hope I've done it right! |
I added a comment regarding changes to the pull request. Just minor bits to keep things in line with what we ask others to do. |
Thanks for your help, I've updated the change log as requested. Hope this is suitable. Please let me know if you have any further suggestions. |
Describe the bug
When upgrading database to 1.2.17, upgrade script 1_2_17.php fails due to 3 parameters passed to array_key_exists function.
To Reproduce
Expected behavior
Database upgrade completes without error.
Fix
Update: install/upgrades/1_2_17.php:176
From:
if (!array_key_exists($table, $tables, true)) {
To:
if (!array_key_exists($table, $tables)) {
Update: install/upgrades/1_2_17.php:183
From:
if (array_key_exists($field, $known_columns, true)) {
To:
if (array_key_exists($field, $known_columns)) {
Additional Context
-PHP Version: 8.0.6
-OS: CentOS 8.3.2011
The text was updated successfully, but these errors were encountered: