Closed (fixed)
Project:
User Visits
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Oct 2008 at 17:37 UTC
Updated:
20 Oct 2008 at 18:17 UTC
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
Comment #1
sanduhrsAdded to 5,6,HEAD.
Published new release.
Thanks.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.