I'm using this module to show a page of visitors, and couldn't figure out why it was only showing five, despite what I had set in the block-specific settings. The block I am using is "My Latest Visitors". Upon looking at the code, I believe there is a defect in the function user_visits_block, in the $op='save' code. The code there should be, I believe

  else if ($op == 'save' ) {
    if ( $delta == 0 ) {
      variable_set('user_visits_block_items', $edit['items']);
    }
    else {
      variable_set('user_visits_block_items_' . $delta, $edit['items']);
    }
  }

as otherwise, the variable being retrieved in the $op='view' code will never be set.

With this code change, this is now working for me.

shawn

Comments

sanduhrs’s picture

Assigned: Unassigned » sanduhrs
Status: Active » Fixed

Added to 5,6,HEAD.
Published new release.
Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.