Easy fix, in acidfree_block, need to add "AND n.status=1" into $where, as follows:

             switch ($delta) {
                case 0:
                    $where = "class <> 'album' AND n.status=1  ORDER BY aid DESC";  // << HERE
                    break;
                case 1:
                    $where = "class <> 'album' AND n.status=1  ORDER BY votes DESC";   // << HERE
                    break;
                case 2:
                default:
                    $all_albums = variable_get('acidfree_block_2_all_albums', 1);
                    $selected_albums = variable_get('acidfree_block_2_random_albums', array());
                    $albums_where = ($all_albums? '' :
                            'parent IN ('.implode(',', $selected_albums).') AND');
                    $where = "$albums_where class <> 'album' AND n.status=1  ORDER BY RAND()";    // << HERE
                    break;
            }

Comments

vhmauery’s picture

Status: Active » Closed (fixed)

Thanks for the fix. It is in CVS 4.6 and HEAD.