require_once('include/contact_widgets.php');
require_once('include/redir.php');
-if(! function_exists('profile_init')) {
+
function profile_init(&$a) {
if(! x($a->page,'aside'))
foreach($dfrn_pages as $dfrn)
$a->page['htmlhead'] .= "<link rel=\"dfrn-{$dfrn}\" href=\"".$a->get_baseurl()."/dfrn_{$dfrn}/{$which}\" />\r\n";
$a->page['htmlhead'] .= "<link rel=\"dfrn-poco\" href=\"".$a->get_baseurl()."/poco/{$which}\" />\r\n";
-}
+
}
-if(! function_exists('profile_content')) {
+
function profile_content(&$a, $update = 0) {
$category = $datequery = $datequery2 = '';
$parents_arr = array();
$parents_str = '';
- if(count($r)) {
+ if (dba::is_result($r)) {
foreach($r as $rr)
$parents_arr[] = $rr['item_id'];
$parents_str = implode(', ', $parents_arr);
return $o;
}
-}