I am having an issue linking attendee's avatar to their profile page. Right now, it just links to my members page. What needs to be changed?
Here is my attendees.php
<?php
/* @var $EM_Event EM_Event */
$people = array();
$EM_Bookings = $EM_Event->get_bookings();
if( count($EM_Bookings->bookings) > 0 ){
?>
<?php
$guest_bookings = get_option('dbem_bookings_registration_disable');
$guest_booking_user = get_option('dbem_bookings_registration_user');
foreach( $EM_Bookings as $EM_Booking){
if($EM_Booking->status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
$people[] = $EM_Booking->get_person()->ID;
echo '<div style="float:left; width:80px;"><a href="http://localati.com/members/'. bp_member_permalink() .'">'. get_avatar($EM_Booking->get_person()->ID, 50) .'</a></div><div style="float:left; width:160px;"><h4>'. $EM_Booking->get_person()->display_name .'</h4></div><div style="float:left; width:80px;"><h6>('. $EM_Booking->get_spaces() .')</h6></div><div style="float:left; width:160px;">'. $EM_Booking->booking_comment .'</div>';
}elseif($EM_Booking->status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){
echo '<li>'. get_avatar($EM_Booking->get_person()->ID, 50) .'</li>';
}
}
}
?>
Thanks