Problem/Motivation

The method callbackMailto() produces the following deprecation warning when checking for a query string in the provided email address:

Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Steps to reproduce

Provide an email address without a query string.

Proposed resolution

Only process the query string when it exists.

Comments

mrshowerman created an issue. See original summary.

mrshowerman’s picture

Assigned: mrshowerman » Unassigned
Status: Active » Needs review
StatusFileSize
new1.5 KB

nigelcunningham’s picture

Status: Needs review » Fixed

Committed, with a slight change so we're not assigning $query and testing it in the one line (readability).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.