Commit 317ba1e2 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove noisy warning when sending registration email

Signed-off-by: default avatarRichard Mansfield <>
parent 09ff3dd4
......@@ -428,7 +428,7 @@ function email_user($userto, $userfrom, $subject, $messagetext, $messagehtml='',
* object containing the email properties if they can
function can_receive_email($userto) {
if (!$userto->id) {
if (empty($userto->id)) {
// No user ID was provided by email_user
return new StdClass;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment