$profile = get_profiledata_by_nick($nick, $a->profile_uid);
- if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
- $account_type = t('Forum');
- else
- $account_type = "";
+ $account_type = account_type($profile);
$tpl = get_markup_template("vcard-widget.tpl");
dbesc($video_id)
);
- if(count($r)) {
+ if(dbm::is_result($r)) {
q("DELETE FROM `attach` WHERE `uid` = %d AND `id` = '%s'",
intval(local_user()),
dbesc($video_id)
$drop_id = intval($i[0]['id']);
if($i[0]['visible'])
- proc_run('php',"include/notifier.php","drop","$drop_id");
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
}
}
intval($contact_id),
intval($owner_uid)
);
- if(count($r)) {
+ if(dbm::is_result($r)) {
$can_post = true;
$contact = $r[0];
$remote_contact = true;
- $visitor = $cid;
+ $visitor = $contact_id;
}
}
}
intval($contact_id),
intval($owner_uid)
);
- if(count($r)) {
+ if(dbm::is_result($r)) {
$contact = $r[0];
$remote_contact = true;
}
$sql_extra GROUP BY hash",
intval($a->data['user']['uid'])
);
- if(count($r)) {
+ if(dbm::is_result($r)) {
$a->set_pager_total(count($r));
$a->set_pager_itemspage(20);
}
$videos = array();
- if(count($r)) {
+ if(dbm::is_result($r)) {
foreach($r as $rr) {
if($a->theme['template_engine'] === 'internal') {
$alt_e = template_escape($rr['filename']);