User relationship block themes item list incorrectly (only 1 relationship displayed)
boxfresh_1979 - April 18, 2008 - 09:01
| Project: | User Relationships |
| Version: | 5.x-2.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
In user_relationship_blocks.module, line 298 reads:
$output[] = theme('item_list', array($users));This passes an array like so:
Array
(
[0] => Array
(
[0] => rich_test
[1] => richie the coach
)
)
This array should be:
Array
(
[0] => rich_test
[1] => richie the coach
)
Updating the code to below, fixes this issue
$output[] = theme('item_list', $users);I don't have CVS running at the moment, when I do I can post a patch for this fix.
Cheers
Rich

#1
This should be clearer...
Array
(
[0] => Array
(
[0] => <a href="/users/richtest" title="View user profile." class="active">rich_test</a>
[1] => <a href="/users/richie-coach" title="View user profile.">richie the coach</a>
)
)
should be...
Array(
[0] => <a href="/users/richtest" title="View user profile." class="active">rich_test</a>
[1] => <a href="/users/richie-coach" title="View user profile.">richie the coach</a>
)
#2
The array wrap needed to be there for the "All Relationships" blocks, but shouldn't be there for the specific relationships blocks.
Pushed fix into -dev.
#3
Automatically closed -- issue fixed for two weeks with no activity.