Problem/Motivation

This module is testing whether a string is empty by running it through `drupal_strlen` and checking if the result is greater than zero. Sending null through this function is deprecated in recent versions of PHP. We can just use `empty` as a replacement.

This error was traced back to this module:

> “Deprecated function: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated in drupal_strlen() (line 482 of /code/includes/unicode.inc).”

Comments

laryn created an issue. See original summary.

laryn’s picture

Status: Active » Needs review
StatusFileSize
new468 bytes

Patch attached.

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.