Skip to content

Conversation

chrisgaraffa
Copy link

By default CRM_Utils_Array will return NULL if the key doesn't exist. Passing NULL to parameter 2 of preg_match is now deprecated behavior:

Got error 'PHP message: PHP Deprecated:  preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /srv/www/SITE/public_html/wp-content/uploads/civicrm/ext/eu.tttp.noverwrite/noverwrite.php on line 15'

If the user goes directly to the profile edit form and there's no HTTP_REFERER, this change sets the value of $path to an empty string, which resolves the deprecation warning.

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

Successfully merging this pull request may close these issues.

1 participant