It's weird... We added the newsletter plugin to my site, and we checked the option off that says to add new users to the newsletter list.
It's almost 50/50 on whether it does or doesn't. The last 2 people that signed up for the site, were not added. They did complete registration and are active. Their Emails are not on the newsletter list. I tested it twice, once at home and once at work. 1 ended up on and one didn't. Someone else did it, and they ended up on. It's really strange...
Here's the code that is supposed to add new users to the newsletter list. Can you see anything wrong wtih it?
Text Formatted Code
/**
* This function will inform all plugins when a new user account is created.
*
* @param int $uid user id of the new user account
*
*/
function plugin_user_create_newsletter($uid) {
global $_TABLES, $_NL_CONF;
if ($_NL_CONF['subscribe_new_users']) {
$email = DB_getItem($_TABLES['users'], 'email', "uid = '{$uid}'");
NL_addEmail($email);
}
}