553f2e5f by Kevin Burton

hopefully this fixes the email issue

1 parent f6a0b4ef
......@@ -255,6 +255,8 @@ function send_email($uid, $contents,$args) {
if ($uid > 0) {
$user = new WP_User($uid);
$to_email = $user->user_email;//get_user_meta($uid,'home_email',true);
} elseif (isset($args['email'])) {
$to_email = $args['email'];
} else {
return;
}
......