Improve dba::selectFirst calls
- Fix remaining $r[0] references - Rename $r to meaningful names
This commit is contained in:
parent
465e1d6a5c
commit
5fc4927764
29 changed files with 228 additions and 250 deletions
|
@ -44,8 +44,8 @@ function hovercard_content()
|
|||
$cid = 0;
|
||||
if (local_user() && strpos($profileurl, 'redir/') === 0) {
|
||||
$cid = intval(substr($profileurl, 6));
|
||||
$r = dba::selectFirst('contact', ['nurl'], ['id' => $cid]);
|
||||
$profileurl = defaults($r, 'nurl', '');
|
||||
$remote_contact = dba::selectFirst('contact', ['nurl'], ['id' => $cid]);
|
||||
$profileurl = defaults($remote_contact, 'nurl', '');
|
||||
}
|
||||
|
||||
$contact = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue