intval(local_user())
);
- if(count($r)) {
+ if(dbm::is_result($r)) {
$intro_id = $r[0]['id'];
$contact_id = $r[0]['contact-id'];
}
'$item_label' => $it['label'],
'$item_link' => $it['link'],
'$item_image' => $it['image'],
- '$item_text' => $it['text'],
+ '$item_text' => htmlentities($it['text']),
'$item_when' => $it['when'],
'$item_seen' => $it['seen'],
));