My newsletter list sent an unpublished node, is this possible to happen?

I am using Revisioning module and a node that haven't yet been approved to be published was sent with a newsletter list.

Comments

chrbak’s picture

Maybe two possible solutions are..

Add after line 104 the bellow code:

    $query->condition('node.status', 1);

Or replace code at line 141:

    $newsletter_nodes[] = node_load($node->nid);

with:

    $nod = node_load($node->nid);
    if ($nod->status == '1') { $newsletter_nodes[] = $nod; }