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

avoid undefined offset and uninitialized key errors on upgrade - dev/core#1555 #16417

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

jmcclelland
Copy link
Contributor

https://lab.civicrm.org/dev/core/issues/1555

Overview

See https://lab.civicrm.org/dev/core/issues/1555

When upgrading, there are a lot of php notices along the lines of:

Undefined offset: 0 SmartGroups.php:290                           
Uninitialized string offset: 0 SmartGroups.php:290

Before

The errors fill the screen.

After

The errors do not show up.

Technical Details

The SmartGroup upgrade code makes an assumption about the formValues in a given database that is not true for all data.

@civibot
Copy link

civibot bot commented Jan 29, 2020

(Standard links)

@eileenmcnaughton
Copy link
Contributor

Thanks @jmcclelland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants