intval($a->argv[2]),
intval(local_user())
);
- if(! count($r)) {
+ if(! dbm::is_result($r)) {
notice( t('Profile not found.') . EOL);
goaway('profiles');
return; // NOTREACHED
intval($a->argv[1]),
intval(local_user())
);
- if(! count($r)) {
+ if(! dbm::is_result($r)) {
notice( t('Profile not found.') . EOL);
killme();
return;
intval(local_user())
);
}
- if(count($r)) {
+ if (dbm::is_result($r)) {
$prf = $r[0]['url'];
$newname = $r[0]['name'];
}
intval($a->argv[1]),
intval(local_user())
);
- if(! count($r)) {
+ if(! dbm::is_result($r)) {
notice( t('Profile not found.') . EOL);
return;
}
"SELECT * FROM `profile` WHERE `uid` = %d AND `is-default`=1",
local_user()
);
- if(count($r)){
+ if (dbm::is_result($r)){
//Go to the default profile.
goaway('profiles/'.$r[0]['id']);
}
$r = q("SELECT * FROM `profile` WHERE `uid` = %d",
local_user());
- if(count($r)) {
+ if (dbm::is_result($r)) {
$tpl = get_markup_template('profile_entry.tpl');
foreach($r as $rr) {