Closed (fixed)
Project:
Unwanted Email Registration
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Mar 2024 at 21:31 UTC
Updated:
16 Dec 2025 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
abdulaziz zaidWhat the php version and drupal?
Comment #3
grasmash commentedThis happens because for some reason, _unwanted_email_registration_filter_email() is called twice. The first time $email is properly populated, the second time it is NULL.
PHP 8.2, Drupal 10.2.3.
Comment #4
manikandan era commentedComment #5
vensiresComment #6
m.managoudis commentedComment #8
m.managoudis commentedPrevious patch seems not fixing the problem.
The problem is that code doesn't takes into account email with NULL value (for example Anonymous user with uid == 0)
The MR below skips empty email values and continues the loop to check the rest emails:
https://git.drupalcode.org/project/unwanted_email_registration/-/merge_r...
Comment #9
grasmash commentedComment #10
vensiresIt's a really small but working change, so if no one else has any objection, I set it as RTBC.
Comment #12
abdulaziz zaidMerged.