Changes between Initial Version and Version 1 of Ticket #6969, comment 2
- Timestamp:
- 03/21/2016 08:36:37 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6969, comment 2
initial v1 3 3 Bug occurs when a numeric string is passed to `BP_Email_Recipient` instead of an integer. 4 4 5 The `$initiator_id` in `friends_notification_accepted_request()` uses a numeric string, which is why the email fails to send because no recipient is parsed correctly in `BP_Email_Recipient`. 6 5 7 I suggest patching `BP_Email_Recipient` to use `is_numeric()` instead of `is_int()` to fix this problem. A broader solution would be to audit all our access methods and functions to ensure that numeric strings are cast as integers or to use `is_numeric()` where needed.